From 59af119a429d243e69de53fe2e6c056280454139 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Thu, 24 Nov 2011 18:25:08 +0100 Subject: [PATCH] revert d62c0aa0: "change windows shortcuts to match os conventions" --- lib/ace/commands/default_commands.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/ace/commands/default_commands.js b/lib/ace/commands/default_commands.js index b898ef80..9cbcf938 100644 --- a/lib/ace/commands/default_commands.js +++ b/lib/ace/commands/default_commands.js @@ -56,12 +56,12 @@ exports.commands = [{ readOnly: true }, { name: "centerselection", - bindKey: bindKey("Ctrl-L", "Ctrl-L"), + bindKey: bindKey(null, "Ctrl-L"), exec: function(editor) { editor.centerSelection(); }, readOnly: true }, { name: "gotoline", - bindKey: bindKey("Ctrl-G", "Command-L"), + bindKey: bindKey("Ctrl-L", "Command-L"), exec: function(editor) { var line = parseInt(prompt("Enter line number:")); if (!isNaN(line)) { @@ -91,12 +91,12 @@ exports.commands = [{ readOnly: true }, { name: "findnext", - bindKey: bindKey("Ctrl-R", "Command-G"), + bindKey: bindKey("Ctrl-K", "Command-G"), exec: function(editor) { editor.findNext(); }, readOnly: true }, { name: "findprevious", - bindKey: bindKey("Ctrl-Shift-R", "Command-Shift-G"), + bindKey: bindKey("Ctrl-Shift-K", "Command-Shift-G"), exec: function(editor) { editor.findPrevious(); }, readOnly: true }, { @@ -275,7 +275,7 @@ exports.commands = [{ exec: function(editor) { editor.toggleCommentLines(); } }, { name: "replace", - bindKey: bindKey("Ctrl-H", "Command-Option-F"), + bindKey: bindKey("Ctrl-R", "Command-Option-F"), exec: function(editor) { var needle = prompt("Find:", editor.getCopyText()); if (!needle) @@ -287,7 +287,7 @@ exports.commands = [{ } }, { name: "replaceall", - bindKey: bindKey("Ctrl-Shift-H", "Command-Shift-Option-F"), + bindKey: bindKey("Ctrl-Shift-R", "Command-Shift-Option-F"), exec: function(editor) { var needle = prompt("Find:"); if (!needle) @@ -366,7 +366,7 @@ exports.commands = [{ } }, { name: "splitline", - bindKey: bindKey("Ctrl-K", "Ctrl-O"), + bindKey: bindKey(null, "Ctrl-O"), exec: function(editor) { editor.splitLine(); } }, { name: "transposeletters",