From: Robert Sesek Date: Sat, 30 Jun 2012 18:05:55 +0000 (-0400) Subject: Fix the sizing bug by not calling focus explicilty for the extension X-Git-Url: https://src.bluestatic.org/?a=commitdiff_plain;h=eae9b4d356a3680991ccf85302b55892de03cb76;p=skeletonkey.git Fix the sizing bug by not calling focus explicilty for the extension --- diff --git a/core.js b/core.js index 721cfe5..552b0d1 100644 --- 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(); }; /**