mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 18:07:58 +01:00
Don't offer Text Edit mode for non-input elements. Closes issue #590.
This commit is contained in:
@@ -649,6 +649,7 @@ var Editor = Module("editor", {
|
||||
mappings.add([modes.INPUT],
|
||||
["<C-t>"], "Edit text field in Vi mode",
|
||||
function () {
|
||||
dactyl.assert(dactyl.focusedElement);
|
||||
dactyl.assert(!editor.isTextEdit);
|
||||
modes.push(modes.TEXT_EDIT);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user