Fix the sizing bug by not calling focus explicilty for the extension
[skeletonkey.git] / core.js
diff --git a/core.js b/core.js
index 721cfe51bfbfd2ff9b6bea1bfc507062bd28b346..552b0d1d1547bb5444fef23dde7fe8dbd0893f05 100644 (file)
--- a/core.js
+++ b/core.js
@@ -80,7 +80,10 @@ SkeletonKey.prototype._init = function() {
 
   this._initChromeExtension();
 
-  this._master.focus();
+  // Chrome extensions will get the first field focused automatically, so only
+  // do it explicitly for hosted pages.
+  if (!this._isChromeExtension())
+    this._master.focus();
 };
 
 /**