From 4176e6f079159cfe53a53c6d2f5e9f1a86e638ff Mon Sep 17 00:00:00 2001 From: nightwing Date: Tue, 4 Oct 2011 22:46:58 +0500 Subject: [PATCH] add missing delete keybindings for windows --- lib/ace/commands/default_commands.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ace/commands/default_commands.js b/lib/ace/commands/default_commands.js index e02823d4..7c9985fe 100644 --- a/lib/ace/commands/default_commands.js +++ b/lib/ace/commands/default_commands.js @@ -315,12 +315,12 @@ canon.addCommand({ }); canon.addCommand({ name: "removetolinestart", - bindKey: bindKey(null, "Option-Backspace"), + bindKey: bindKey("Alt-Backspace", "Option-Backspace"), exec: function(env, args, request) { env.editor.removeToLineStart(); } }); canon.addCommand({ name: "removetolineend", - bindKey: bindKey(null, "Ctrl-K"), + bindKey: bindKey("Alt-Delete", "Ctrl-K"), exec: function(env, args, request) { env.editor.removeToLineEnd(); } }); canon.addCommand({ @@ -330,7 +330,7 @@ canon.addCommand({ }); canon.addCommand({ name: "removewordright", - bindKey: bindKey(null, "Alt-Delete"), + bindKey: bindKey("Ctrl-Delete", "Alt-Delete"), exec: function(env, args, request) { env.editor.removeWordRight(); } }); canon.addCommand({