mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-03 15:04:12 +01:00
Ensure that modes.stack[0].reset gets called on modes.reset()
This commit is contained in:
@@ -212,6 +212,8 @@ const Modes = Module("modes", {
|
||||
},
|
||||
|
||||
reset: function () {
|
||||
if (this._modeStack.length == 1 && this.topOfStack.params.restore)
|
||||
this.topOfStack.params.restore(this.topOfStack);
|
||||
while (this._modeStack.length > 1)
|
||||
this.pop();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user