mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-19 23:57:59 +01:00
Fixed the issue which cannot escape from hint mode normally.
This commit is contained in:
@@ -173,8 +173,6 @@ const modes = (function () //{{{
|
||||
set: function (mainMode, extendedMode, silent)
|
||||
{
|
||||
silent = (silent || main == mainMode && extended == extendedMode);
|
||||
if (typeof extendedMode === "number")
|
||||
extended = extendedMode;
|
||||
// if a main mode is set, the extended is always cleared
|
||||
if (typeof mainMode === "number")
|
||||
{
|
||||
@@ -186,6 +184,8 @@ const modes = (function () //{{{
|
||||
if (main != oldMain)
|
||||
handleModeChange(oldMain, mainMode, oldExtended);
|
||||
}
|
||||
if (typeof extendedMode === "number")
|
||||
extended = extendedMode;
|
||||
|
||||
if (!silent)
|
||||
this.show();
|
||||
|
||||
Reference in New Issue
Block a user