Add cut or delete command shift+delete

This commit is contained in:
Adam Jimenez 2013-08-23 15:56:58 +01:00
commit 5c721c1103

View file

@ -404,6 +404,20 @@ exports.commands = [{
),
exec: function(editor) { editor.remove("left"); },
multiSelectAction: "forEach"
}, {
name: "cut_or_delete",
bindKey: bindKey(
"Shift-Delete",
"Shift-Delete"
),
exec: function(editor) {
if( editor.selection.isEmpty() ){
editor.remove("left");
}else{
return false;
}
},
multiSelectAction: "forEach"
}, {
name: "removetolinestart",
bindKey: bindKey("Alt-Backspace", "Command-Backspace"),