Skip to content

Undo Feature using ctrl + Z shortcut #139

Open
@manjots1607

Description

@manjots1607
  • Feature Description
    Currently, if we press ctrl+z nothing happens, in every text input we have this feature, especially come handy when we
    paste wrong otp..

  • Preferred Solution

    • Needed to create Globale undo Stack to store all values.
    1. Create keydown event for ctrl + z, that pop out element from undostack and set new value.
    2. Code contains method handleOtpChange inside that push (this.props.value) every time it triggers.

Tried to implement this algorithim and also initiating PR in a while.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions