Skip to content

Commit 05f6d1d

Browse files
committed
Add keyboard shortcuts for undo/redo menu items in PuppeteerWindow
1 parent 18e0f15 commit 05f6d1d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

editor/src/main/java/com/jvn/editor/ui/actioneditor/PuppeteerWindow.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,8 +1323,10 @@ private HBox buildToolbarCommandBar() {
13231323
});
13241324

13251325
MenuItem miUndo = new MenuItem("Undo");
1326+
miUndo.setAccelerator(new KeyCodeCombination(KeyCode.Z, KeyCombination.SHORTCUT_DOWN));
13261327
miUndo.setOnAction(e -> executeUndo());
13271328
MenuItem miRedo = new MenuItem("Redo");
1329+
miRedo.setAccelerator(new KeyCodeCombination(KeyCode.Z, KeyCombination.SHORTCUT_DOWN, KeyCombination.SHIFT_DOWN));
13281330
miRedo.setOnAction(e -> executeRedo());
13291331
MenuItem miAddKeyframe = new MenuItem("Add Keyframe at Playhead");
13301332
miAddKeyframe.setOnAction(e -> timelinePanel.addKeyframeAtPlayhead());

0 commit comments

Comments
 (0)