From 1f9206f079d43be50dd67d566ebe5205f06323be Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Mon, 7 Mar 2011 20:11:01 +0100 Subject: [PATCH] fix keybindings --- lib/ace/commands/default_commands.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/ace/commands/default_commands.js b/lib/ace/commands/default_commands.js index 7adae1e7..664c7f1f 100644 --- a/lib/ace/commands/default_commands.js +++ b/lib/ace/commands/default_commands.js @@ -257,7 +257,7 @@ canon.addCommand({ }); canon.addCommand({ name: "gotoright", - bindKey: bindKey("Right", "Right|Ctrl-Fyou "), + bindKey: bindKey("Right", "Right|Ctrl-F"), exec: function(env, args, request) { env.editor.navigateRight(args.times); } }); canon.addCommand({ @@ -315,11 +315,12 @@ canon.addCommand({ }); canon.addCommand({ name: "removetolinestart", - bindKey: bindKey("WIN", "MAC"), + bindKey: bindKey(null, "Option-Backspace"), exec: function(env, args, request) { env.editor.removeToLineStart(); } }); canon.addCommand({ name: "removetolineend", + bindKey: bindKey(null, "Ctrl-K"), exec: function(env, args, request) { env.editor.removeToLineEnd(); } }); canon.addCommand({ @@ -350,7 +351,7 @@ canon.addCommand({ }); canon.addCommand({ name: "centerselection", - bindKey: bindKey(null, "Ctrl-L"), + bindKey: bindKey("Ctrl-L", "Ctrl-L"), exec: function(env, args, request) { env.editor.centerSelection(); } }); canon.addCommand({ @@ -360,9 +361,8 @@ canon.addCommand({ }); canon.addCommand({ name: "transposeletters", - bindKey: bindKey(null, "Ctrl-L"), + bindKey: bindKey("Ctrl-T", "Ctrl-T"), exec: function(env, args, request) { env.editor.transposeLetters(); } }); - -}); +}); \ No newline at end of file