mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 22:17:59 +01:00
Block invalid keys in VISUAL TEXT EDIT mode and add v_x mapping. Closes issue #182.
This commit is contained in:
@@ -678,11 +678,10 @@ const Editor = Module("editor", {
|
||||
});
|
||||
|
||||
mappings.add([modes.VISUAL],
|
||||
["d"], "Delete selected text",
|
||||
["d", "x"], "Delete selected text",
|
||||
function () {
|
||||
dactyl.assert(editor.isTextEdit);
|
||||
editor.executeCommand("cmd_cut");
|
||||
modes.pop();
|
||||
});
|
||||
|
||||
mappings.add([modes.VISUAL],
|
||||
|
||||
Reference in New Issue
Block a user