mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-19 23:07:58 +01:00
Push INSERT mode on top of PASS THROUGH mode when entering an input field, rather than clearing the mode stack.
This commit is contained in:
@@ -172,6 +172,12 @@ const Modes = Module("modes", {
|
||||
dactyl.triggerObserver("mode-add", mode);
|
||||
},
|
||||
|
||||
dumpStack: function () {
|
||||
util.dump("Mode stack:");
|
||||
for (let [i, mode] in array.iterItems(this._modeStack))
|
||||
util.dump(" " + i + ": " + mode);
|
||||
},
|
||||
|
||||
getMode: function (name) this._modeMap[name],
|
||||
|
||||
getStack: function (idx) this._modeStack[this._modeStack.length - idx - 1] || this._modeStack[0],
|
||||
|
||||
Reference in New Issue
Block a user