summaryrefslogtreecommitdiff
path: root/public/vendor/codemirror/keymap/sublime.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/vendor/codemirror/keymap/sublime.js')
-rw-r--r--public/vendor/codemirror/keymap/sublime.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/public/vendor/codemirror/keymap/sublime.js b/public/vendor/codemirror/keymap/sublime.js
index e0d0e92b..3cf67413 100644
--- a/public/vendor/codemirror/keymap/sublime.js
+++ b/public/vendor/codemirror/keymap/sublime.js
@@ -55,6 +55,8 @@
cmds[map["Alt-Left"] = "goSubwordLeft"] = function(cm) { moveSubword(cm, -1); };
cmds[map["Alt-Right"] = "goSubwordRight"] = function(cm) { moveSubword(cm, 1); };
+ if (mac) map["Cmd-Left"] = "goLineStartSmart";
+
var scrollLineCombo = mac ? "Ctrl-Alt-" : "Ctrl-";
cmds[map[scrollLineCombo + "Up"] = "scrollLineUp"] = function(cm) {
@@ -105,7 +107,7 @@
cm.setSelections(extended);
};
- map["Shift-" + ctrl + "K"] = "deleteLine";
+ map["Shift-Ctrl-K"] = "deleteLine";
function insertLine(cm, above) {
if (cm.isReadOnly()) return CodeMirror.Pass