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:
@@ -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;
|
||||
},
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user