Skip to content

Add undo/redo in the input text field #129

@Neogeekmo

Description

@Neogeekmo

What version(s) of WoW are you using?

Retail

What problem are you experiencing that led to you asking for this feature?

As a user,
I want to be able to undo and redo the text I type in an input field,
so that I can easily correct mistakes or revert changes without retyping everything.

Currently, the input text field does not support undo/redo actions.
If I make a mistake while typing or accidentally delete part of the text, I have to manually retype the content.

What solution would you like?

I would like the input field to support:

  • Undo (e.g. CTRL + Z) to revert the last text change
  • Redo (e.g. CTRL + Y or CTRL + SHIFT + Z) to reapply an undone change

The behavior should:

  • Track text changes during typing and pasting using a debounce mechanism.
  • Restore both text content and cursor position when possible.
  • Ensure undo and redo behavior feels consistent with standard text editing experiences.
  • Allow the undo/redo history size to be configurable (optional).
  • Persist or Not undo/redo history between sessions ? (as input history is already handled, dunno if it's a good idea)

Any alternatives you can think of?

No response

Anything else?

No response

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