Skip to content

Add the ability to be able to hook up a custom action to Undo and Redo commands #4015

@johnzhou721

Description

@johnzhou721

What is the problem or limitation you are having?

On platforms like macOS and Qt there is an Undo / Redo action. Recently, I've been making a game in which there will be a concept of Undoing that I want to hook up Cmd+Z to, but I cannot because the Undo / Redo actions are registered already.

Describe the solution you'd like

A way to call other custom handlers on Cmd+Z and Cmd+Shift+Z (and the like on other platforms). If appropriate, the menubar actions should do the same. Expose Undo / Redo actions for individual textfields os the override can call the default implementation of stuff depending on the focussed widget.

I'm wondering if Cmd+Z etc. may be managed by the system on some platforms, though, making this impossible.

Describe alternatives you've considered

Not have the override option.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew features, or improvements to existing features.not quite rightThe idea or PR has been reviewed, but more work is needed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions