mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-16 12:45:46 +01:00
Backout last change. Something broke just before I committed.
This commit is contained in:
@@ -105,7 +105,7 @@ const modes = (function () //{{{
|
||||
case modes.COMMAND_LINE:
|
||||
// clean up for HINT mode
|
||||
if (modes.extended & modes.HINTS)
|
||||
hints.hide();
|
||||
hints.hide();
|
||||
commandline.close();
|
||||
break;
|
||||
}
|
||||
@@ -152,11 +152,6 @@ const modes = (function () //{{{
|
||||
mainModes.push(this[name]);
|
||||
},
|
||||
|
||||
getMode: function (name)
|
||||
{
|
||||
return modeMap[name];
|
||||
},
|
||||
|
||||
// show the current mode string in the command line
|
||||
show: function ()
|
||||
{
|
||||
@@ -185,12 +180,12 @@ const modes = (function () //{{{
|
||||
// if a main mode is set, the extended is always cleared
|
||||
if (typeof mainMode === "number")
|
||||
{
|
||||
if (!silent && mainMode != main)
|
||||
handleModeChange(main, mainMode);
|
||||
|
||||
main = mainMode;
|
||||
if (!extendedMode)
|
||||
extended = modes.NONE;
|
||||
|
||||
if (!silent && mainMode != main)
|
||||
handleModeChange(main, mainMode);
|
||||
}
|
||||
if (typeof extendedMode === "number")
|
||||
extended = extendedMode;
|
||||
|
||||
Reference in New Issue
Block a user