Merge pull 1554
This commit is contained in:
commit
6a76d63491
1 changed files with 12 additions and 1 deletions
|
|
@ -393,7 +393,7 @@ exports.commands = [{
|
||||||
exec: function(editor) { editor.moveLinesDown(); }
|
exec: function(editor) { editor.moveLinesDown(); }
|
||||||
}, {
|
}, {
|
||||||
name: "del",
|
name: "del",
|
||||||
bindKey: bindKey("Delete", "Delete|Ctrl-D"),
|
bindKey: bindKey("Delete", "Delete|Ctrl-D|Shift-Delete"),
|
||||||
exec: function(editor) { editor.remove("right"); },
|
exec: function(editor) { editor.remove("right"); },
|
||||||
multiSelectAction: "forEach"
|
multiSelectAction: "forEach"
|
||||||
}, {
|
}, {
|
||||||
|
|
@ -404,6 +404,17 @@ exports.commands = [{
|
||||||
),
|
),
|
||||||
exec: function(editor) { editor.remove("left"); },
|
exec: function(editor) { editor.remove("left"); },
|
||||||
multiSelectAction: "forEach"
|
multiSelectAction: "forEach"
|
||||||
|
}, {
|
||||||
|
name: "cut_or_delete",
|
||||||
|
bindKey: bindKey("Shift-Delete", null),
|
||||||
|
exec: function(editor) {
|
||||||
|
if (editor.selection.isEmpty()) {
|
||||||
|
editor.remove("left");
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
multiSelectAction: "forEach"
|
||||||
}, {
|
}, {
|
||||||
name: "removetolinestart",
|
name: "removetolinestart",
|
||||||
bindKey: bindKey("Alt-Backspace", "Command-Backspace"),
|
bindKey: bindKey("Alt-Backspace", "Command-Backspace"),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue