mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 05:37:58 +01:00
Change the timing of mode-change callbacks slightly. Fix some message display bugs.
--HG-- branch : mode-refactoring
This commit is contained in:
@@ -440,6 +440,8 @@ const CommandLine = Module("commandline", {
|
||||
* @param {number} extendedMode
|
||||
*/
|
||||
open: function open(prompt, cmd, extendedMode) {
|
||||
this.widgets.message = null;
|
||||
|
||||
modes.push(modes.COMMAND_LINE, this.currentExtendedMode, {
|
||||
leave: function (params) {
|
||||
if (params.pop)
|
||||
@@ -556,6 +558,7 @@ const CommandLine = Module("commandline", {
|
||||
let doc = this.widgets.multilineOutput.contentDocument;
|
||||
let win = this.widgets.multilineOutput.contentWindow;
|
||||
|
||||
this.widgets.message = null;
|
||||
if (!this.commandVisible)
|
||||
this.hide();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user