Hotkey for undo/redo
Describe your issue
It's nice that we've got undo/redo buttons in the Header:
but if my hands are on the keyboard, I lose hundreds of milliseconds moving my hands to the mouse in order to click one of those options.
Solution you'd like
If there's something to undo, pressing Ctrl + Z should undo it. If there's something to redo, pressing Ctrl + Shift + Z should redo it.
Alternatives you've considered
No response
Additional context
No response
Technical ideas and questions
Should be very similar to setting the score for the selected node/edge, except:
- instead of doing something with the score, we need to perform undo or redo
- also probably check that undo/redo is possible, should be able to check if there are past/future states available like this but without a hook
- we should also only continue with undo/redo if the user has permission to; should be able to check via the canEdit hook
Can i please try this ! i cant seem to find the code were undo redo buttons are specified can you help me locate it
@SakshamKaundal I see you made #732 for this and found the file for the undo/redo buttons, nice. Can continue the discussion on that PR
@SakshamKaundal it's been a while so I'm going to unassign you, let me know if I should reassign you!