From d62c0aa08edce4307613385fcf7b26151ff3a812 Mon Sep 17 00:00:00 2001 From: nightwing Date: Sat, 19 Nov 2011 17:27:07 +0400 Subject: [PATCH] change windows shortcuts to match os conventions --- lib/ace/commands/default_commands.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/ace/commands/default_commands.js b/lib/ace/commands/default_commands.js index 95c4e94c..a0a97862 100644 --- a/lib/ace/commands/default_commands.js +++ b/lib/ace/commands/default_commands.js @@ -59,7 +59,7 @@ exports.commands = [{ exec: function(editor) { editor.removeLines(); } }, { name: "gotoline", - bindKey: bindKey("Ctrl-L", "Command-L"), + bindKey: bindKey("Ctrl-G", "Command-L"), exec: function(editor) { var line = parseInt(prompt("Enter line number:")); if (!isNaN(line)) { @@ -72,11 +72,11 @@ exports.commands = [{ exec: function(editor) { editor.toggleCommentLines(); } }, { name: "findnext", - bindKey: bindKey("Ctrl-K", "Command-G"), + bindKey: bindKey("Ctrl-R", "Command-G"), exec: function(editor) { editor.findNext(); } }, { name: "findprevious", - bindKey: bindKey("Ctrl-Shift-K", "Command-Shift-G"), + bindKey: bindKey("Ctrl-Shift-R", "Command-Shift-G"), exec: function(editor) { editor.findPrevious(); } }, { name: "find", @@ -87,7 +87,7 @@ exports.commands = [{ } }, { name: "replace", - bindKey: bindKey("Ctrl-R", "Command-Option-F"), + bindKey: bindKey("Ctrl-H", "Command-Option-F"), exec: function(editor) { var needle = prompt("Find:", editor.getCopyText()); if (!needle) @@ -99,7 +99,7 @@ exports.commands = [{ } }, { name: "replaceall", - bindKey: bindKey("Ctrl-Shift-R", "Command-Shift-Option-F"), + bindKey: bindKey("Ctrl-Shift-H", "Command-Shift-Option-F"), exec: function(editor) { var needle = prompt("Find:"); if (!needle) @@ -291,11 +291,11 @@ exports.commands = [{ } }, { name: "centerselection", - bindKey: bindKey(null, "Ctrl-L"), + bindKey: bindKey("Ctrl-L", "Ctrl-L"), exec: function(editor) { editor.centerSelection(); } }, { name: "splitline", - bindKey: bindKey(null, "Ctrl-O"), + bindKey: bindKey("Ctrl-K", "Ctrl-O"), exec: function(editor) { editor.splitLine(); } }, { name: "transposeletters", @@ -323,7 +323,7 @@ exports.commands = [{ } }, { name: "foldall", - bindKey: bindKey("Alt-Shift-0", "Alt-Shift-0"), + bindKey: bindKey("Alt-0", "Alt-0"), exec: function(editor) { editor.session.foldAll(); } @@ -331,7 +331,7 @@ exports.commands = [{ name: "unfoldall", bindKey: bindKey("Alt-Shift-0", "Alt-Shift-0"), exec: function(editor) { - editor.session.unFoldAll(); + editor.session.unfold(); } }];