commit fa3910f4362f4699f6022a9725e3363e425ba37d
parent 1c7ac1a9a0f502b0d9ee204c67ee8b2f350683c2
Author: Dan Stillman <dstillman@zotero.org>
Date: Mon, 16 Apr 2012 05:05:31 -0400
Fixes #32, Focus new notes automatically
This broke between Fx 3.6 and 11. Focusing the iframe first fixes it.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml
@@ -319,6 +319,7 @@
<body>
<![CDATA[
if (this._editor) {
+ this._iframe.focus();
this._editor.focus();
this._focus = false;
}
@@ -403,6 +404,7 @@
self.value = self._value;
}
if (self._focus) {
+ self._iframe.focus();
self._editor.focus();
self._focus = false;
}