1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-16 01:55:46 +01:00

Possibly stem aforementioned focus bug.

--HG--
branch : bootstrapped
This commit is contained in:
Kris Maglione
2010-12-27 12:04:03 -05:00
parent e93f7455f2
commit ff52485ca5
6 changed files with 16 additions and 7 deletions

View File

@@ -623,8 +623,10 @@ var CommandLine = Module("commandline", {
this.widgets.message = null;
if (modes.main != modes.COMMAND_LINE)
this.widgets.command = null;
if (modes.main == modes.OUTPUT_MULTILINE && this.widgets.multilineOutput.atEnd)
if (modes.main == modes.OUTPUT_MULTILINE && this.widgets.multilineOutput.atEnd) {
dactyl.focusContent();
modes.pop();
}
if (modes.main != modes.OUTPUT_MULTILINE)
this.multilineOutputVisible = false;
},

View File

@@ -419,9 +419,6 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
* element.
*/
focusContent: function focusContent(clearFocusedElement) {
util.dump("focusContent(" + clearFocusedElement + ") " +
(window == services.focus.activeWindow));
if (window != services.focus.activeWindow)
return;

View File

@@ -81,7 +81,7 @@ 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", { ownsFocus: true });
this.addMode("OUTPUT_MULTILINE");
// this._extended modes, can include multiple modes, and even main modes
this.addMode("EX", true);