Skip to content

Commit 802d41d

Browse files
committed
Bind ctrl-z to undo in emacs mode to prevent textarea from handling it
Issue #274
1 parent a9dd647 commit 802d41d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

keymap/emacs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"Alt-Y": function(cm) {cm.replaceSelection(popFromRing());},
1919
"Ctrl-/": "undo", "Shift-Ctrl--": "undo", "Shift-Alt-,": "goDocStart", "Shift-Alt-.": "goDocEnd",
2020
"Ctrl-S": "findNext", "Ctrl-R": "findPrev", "Ctrl-G": "clearSearch", "Shift-Alt-5": "replace",
21+
"Ctrl-Z": "undo", "Cmd-Z": "undo",
2122
fallthrough: ["basic", "emacsy"]
2223
};
2324

0 commit comments

Comments
 (0)