mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 03:32:28 +01:00
Cherry pick 5digits/dactyl#178
Fix `TypeError: options is undefined` When open a new window and close it, then press `gg` in the original window will throw `TypeError: options is undefined`.
This commit is contained in:
@@ -618,9 +618,6 @@ var Events = Module("events", {
|
||||
util.trapErrors("addEditActionListener",
|
||||
DOM(elem).editor, editor);
|
||||
|
||||
if (elem == window)
|
||||
overlay.activeWindow = window;
|
||||
|
||||
overlay.setData(elem, "had-focus", true);
|
||||
if (event.target instanceof Ci.nsIDOMXULTextBoxElement)
|
||||
if (Events.isHidden(elem, true))
|
||||
@@ -873,6 +870,12 @@ var Events = Module("events", {
|
||||
autocommands.trigger("Fullscreen", { url: this._fullscreen ? "on" : "off", state: this._fullscreen });
|
||||
}
|
||||
statusline.updateZoomLevel();
|
||||
},
|
||||
|
||||
activate: function onActivate(event) {
|
||||
if (event.target === window) {
|
||||
overlay.activeWindow = window;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user