mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 17:57:58 +01:00
Prevent endless TEXTAREA->INSERT->TEXTAREA mode stacking.
--HG-- branch : mode-refactoring
This commit is contained in:
@@ -611,7 +611,12 @@ const Editor = Module("editor", {
|
||||
|
||||
mappings.add([modes.INSERT],
|
||||
["<C-t>"], "Edit text field in Vi mode",
|
||||
function () { modes.push(modes.TEXTAREA); });
|
||||
function () {
|
||||
if (!editor.isTextArea)
|
||||
modes.push(modes.TEXTAREA);
|
||||
else
|
||||
dactyl.beep();
|
||||
});
|
||||
|
||||
mappings.add([modes.INSERT],
|
||||
["<Space>", "<Return>"], "Expand insert mode abbreviation",
|
||||
|
||||
Reference in New Issue
Block a user