mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-08 11:54:13 +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 () {
|
reset: function () {
|
||||||
|
if (this._modeStack.length == 1 && this.topOfStack.params.restore)
|
||||||
|
this.topOfStack.params.restore(this.topOfStack);
|
||||||
while (this._modeStack.length > 1)
|
while (this._modeStack.length > 1)
|
||||||
this.pop();
|
this.pop();
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user