Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit 5bf5561

Browse files
Add undo redo
1 parent d8bd8f9 commit 5bf5561

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

appshell/cefclient_mac.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ - (void)sendEvent:(NSEvent*)event {
9595
theSelector = NSSelectorFromString(@"cut:");
9696
} else if (keyChar == 'a'){
9797
theSelector = NSSelectorFromString(@"selectAll:");
98+
} else if (keyChar == 'z'){
99+
theSelector = NSSelectorFromString(@"undo:");
100+
} else if (keyChar == 'y'){
101+
theSelector = NSSelectorFromString(@"redo:");
98102
}
99103
if (theSelector != nil) {
100104
[[NSApplication sharedApplication] sendAction:theSelector to:nil from:nil];

0 commit comments

Comments
 (0)