1
0
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:
Kris Maglione
2010-10-08 20:49:54 -04:00
parent c05ad65895
commit 42d79460e2
3 changed files with 21 additions and 27 deletions

View File

@@ -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();