mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 18:07:58 +01:00
[bootstrap] Merge default.
--HG-- branch : bootstrapped rename : common/content/modules.js => common/modules/overlay.jsm
This commit is contained in:
@@ -446,7 +446,7 @@ var 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.
|
||||
@@ -620,9 +620,9 @@ var 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;
|
||||
},
|
||||
|
||||
@@ -689,8 +689,8 @@ var 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
|
||||
});
|
||||
|
||||
@@ -1020,7 +1020,7 @@ var 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
|
||||
|
||||
@@ -672,6 +672,7 @@ var Events = Module("events", {
|
||||
switch (dactyl.mode) {
|
||||
case modes.COMMAND_LINE:
|
||||
case modes.INSERT:
|
||||
case modes.OUTPUT_MULTILINE:
|
||||
case modes.PASS_THROUGH:
|
||||
case modes.QUOTE:
|
||||
case modes.TEXT_EDIT:
|
||||
|
||||
@@ -82,12 +82,12 @@ var Modes = Module("modes", {
|
||||
postExecute: function (map) { if (modes.main == modes.QUOTE && map.name === "<C-v>") modes.pop() },
|
||||
onEvent: function () { if (modes.main == modes.QUOTE) modes.pop() }
|
||||
});
|
||||
this.addMode("OUTPUT_MULTILINE");
|
||||
|
||||
// this._extended modes, can include multiple modes, and even main modes
|
||||
this.addMode("EX", true);
|
||||
this.addMode("HINTS", { count: false, ownsBuffer: true });
|
||||
this.addMode("INPUT_MULTILINE", true);
|
||||
this.addMode("OUTPUT_MULTILINE", true);
|
||||
this.addMode("SEARCH_FORWARD", true);
|
||||
this.addMode("SEARCH_BACKWARD", true);
|
||||
this.addMode("MENU", true); // a popupmenu is active
|
||||
|
||||
Reference in New Issue
Block a user