diff --git a/lib/ace/commands/command_manager.js b/lib/ace/commands/command_manager.js index 7b24fb45..15126f87 100644 --- a/lib/ace/commands/command_manager.js +++ b/lib/ace/commands/command_manager.js @@ -91,7 +91,7 @@ var CommandManager = function(platform, commands) { var key = typeof binding == "string" ? binding: binding[this.platform]; this.bindKey(key, command); - } + }; function parseKeys(keys, val, ret) { var key; @@ -108,10 +108,10 @@ var CommandManager = function(platform, commands) { return { key: key, hashId: hashId - } + }; } - function splitSafe(s, separator) { + function splitSafe(s) { return (s.toLowerCase() .trim() .split(new RegExp("[\\s ]*\\-[\\s ]*", "g"), 999)); @@ -125,7 +125,7 @@ var CommandManager = function(platform, commands) { var ckbr = this.commmandKeyBinding; return ckbr[hashId] && ckbr[hashId][textOrKey.toLowerCase()]; - } + }; this.exec = function(command, editor, args) { if (typeof command === 'string') @@ -177,7 +177,7 @@ var CommandManager = function(platform, commands) { this.exec(x, editor); else this.exec(x[0], editor, x[1]); - }, this) + }, this); } finally { this.$inReplay = false; } @@ -189,9 +189,9 @@ var CommandManager = function(platform, commands) { x[0] = x[0].name; if (!x[1]) x = x[0]; - return x - }) - } + return x; + }); + }; }).call(CommandManager.prototype); diff --git a/lib/ace/commands/default_commands.js b/lib/ace/commands/default_commands.js index 5a86e6aa..abade5da 100644 --- a/lib/ace/commands/default_commands.js +++ b/lib/ace/commands/default_commands.js @@ -334,13 +334,13 @@ exports.commands = [{ }, { name: "backspace", bindKey: bindKey( - "Ctrl-Backspace|Command-Backspace|Option-Backspace|Shift-Backspace|Backspace", + "Command-Backspace|Option-Backspace|Shift-Backspace|Backspace", "Ctrl-Backspace|Command-Backspace|Shift-Backspace|Backspace|Ctrl-H" ), exec: function(editor) { editor.remove("left"); } }, { name: "removetolinestart", - bindKey: bindKey("Alt-Backspace", "Option-Backspace"), + bindKey: bindKey("Alt-Backspace", "Command-Backspace"), exec: function(editor) { editor.removeToLineStart(); } }, { name: "removetolineend",