1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 04:07:59 +01:00

Multiline output mode isn't a sub-mode of command-line mode. Fixes MOW scrolling issues and makes MOW keys bindable.

This commit is contained in:
Kris Maglione
2010-12-25 14:10:09 -05:00
parent 617a37db1e
commit ce13a4629e
3 changed files with 8 additions and 7 deletions

View File

@@ -365,7 +365,7 @@ const CommandLine = Module("commandline", {
* @returns {boolean}
*/
get commandVisible() modes.main == modes.COMMAND_LINE &&
!(modes.extended & (modes.INPUT_MULTILINE | modes.OUTPUT_MULTILINE)),
!(modes.extended & modes.INPUT_MULTILINE),
/**
* Ensure that the multiline input widget is the correct size.
@@ -539,9 +539,9 @@ const CommandLine = Module("commandline", {
this.widgets.message = null;
if (modes.main != modes.COMMAND_LINE)
this.widgets.command = null;
if ((modes.extended & modes.OUTPUT_MULTILINE) && this.widgets.multilineOutput.atEnd)
if (modes.main == modes.OUTPUT_MULTILINE && this.widgets.multilineOutput.atEnd)
modes.pop();
if (modes.extended != modes.OUTPUT_MULTILINE)
if (modes.main != modes.OUTPUT_MULTILINE)
this.multilineOutputVisible = false;
},
@@ -608,8 +608,8 @@ const CommandLine = Module("commandline", {
this.hide();
this._startHints = false;
if (!(modes.extended & modes.OUTPUT_MULTILINE))
modes.push(modes.COMMAND_LINE, modes.OUTPUT_MULTILINE, {
if (modes.main != modes.OUTPUT_MULTILINE)
modes.push(modes.OUTPUT_MULTILINE, null, {
onEvent: this.closure.onMultilineOutputEvent
});
@@ -939,7 +939,7 @@ const CommandLine = Module("commandline", {
/**
* Handle events when we are in multi-line output mode, these come from
* dactyl when modes.extended & modes.MULTILINE_OUTPUT and also from
* dactyl when modes.extended & modes.OUTPUT_MULTILINE and also from
* #dactyl-multiline-output in the XUL.
*
* @param {Event} event