Add cut or delete command shift+delete
This commit is contained in:
parent
0655f8a809
commit
5c721c1103
1 changed files with 14 additions and 0 deletions
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue