I’m working on my first pull request, and I wanted to share notes I’m taking along the way. (I think devtalk is the best place to share notes like this, but happy to post elsewhere too if there’s a better place.)
Goal: Make the “undo” button from keyboards and iPad (via sidecar) do undo actions in Blender.
Goal reference: Getting the undo button working in sidecar would address one of the issues this rightclickselect post. I commented on some of my feedback as a user who wants sidecar working, too. I’ll share a link to this in a comment hopefully, since new users can only share 2 links lol)
Keystroke → Event type → action (like “ed.undo”)
- Register “undo” keystrokes in Blender as an Event type (I could use help here)
- Change the default keybindings to map the “undo” Event type do the “ed.undo” action
For (1), I don’t really know where to start. How do keystrokes make it into the list of keystroke events? Is there a library that helps with this, or is it part of clang itself?
For (2), I’m sure I can add a default keybinding entry somewhere around here. This part seems pretty straightforward!