diff --git a/lib/ace/commands/default_commands.js b/lib/ace/commands/default_commands.js index d70d0c54..9c663d18 100644 --- a/lib/ace/commands/default_commands.js +++ b/lib/ace/commands/default_commands.js @@ -393,7 +393,7 @@ exports.commands = [{ exec: function(editor) { editor.moveLinesDown(); } }, { name: "del", - bindKey: bindKey("Delete", "Delete|Ctrl-D"), + bindKey: bindKey("Delete", "Delete|Ctrl-D|Shift-Delete"), exec: function(editor) { editor.remove("right"); }, multiSelectAction: "forEach" }, { @@ -406,14 +406,11 @@ exports.commands = [{ multiSelectAction: "forEach" }, { name: "cut_or_delete", - bindKey: bindKey( - "Shift-Delete", - "Shift-Delete" - ), + bindKey: bindKey("Shift-Delete", null), exec: function(editor) { - if( editor.selection.isEmpty() ){ + if (editor.selection.isEmpty()) { editor.remove("left"); - }else{ + } else { return false; } },