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

Fix focus bug. Closes issue #212.

--HG--
branch : bootstrapped
This commit is contained in:
Kris Maglione
2010-12-27 11:10:50 -05:00
parent a7b8cac7de
commit e93f7455f2
5 changed files with 7 additions and 13 deletions

View File

@@ -256,6 +256,7 @@ var CommandWidgets = Class("CommandWidgets", {
let elem = this.multilineOutput;
elem.contentWindow.addEventListener("unload", function (event) { event.preventDefault(); }, true);
elem.contentDocument.documentElement.id = "dactyl-multiline-output-top";
elem.contentDocument.body.id = "dactyl-multiline-output-content";
elem.__defineGetter__("atEnd", function ()
!Buffer.isScrollable(elem.contentDocument.documentElement, 1));
@@ -1858,6 +1859,7 @@ var ItemList = Class("ItemList", {
this._win = iframe.contentWindow;
this._container = iframe.parentNode;
this._doc.documentElement.id = id + "-top";
this._doc.body.id = id + "-content";
this._doc.body.className = iframe.className + "-content";
this._doc.body.appendChild(this._doc.createTextNode(""));