aboutsummaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
authorStephen Blott2015-02-12 10:52:56 +0000
committerStephen Blott2015-02-12 11:50:34 +0000
commitffc49d3057daee2354fb77d939fffc0cf77ff2e1 (patch)
tree892b319ce3622f6dba517d21db619e6312e9f017 /pages
parent0ea060ca5b45acf42eb892cf900b8b7e04fc3397 (diff)
downloadvimium-ffc49d3057daee2354fb77d939fffc0cf77ff2e1.tar.bz2
Grab back focus...
- add new option "GrabBackFocus" - use chrome.storage.sync.get() to get option value - avoid race conditions on load - fix tests
Diffstat (limited to 'pages')
-rw-r--r--pages/options.coffee1
-rw-r--r--pages/options.html14
2 files changed, 15 insertions, 0 deletions
diff --git a/pages/options.coffee b/pages/options.coffee
index 93c9b503..525508fd 100644
--- a/pages/options.coffee
+++ b/pages/options.coffee
@@ -257,6 +257,7 @@ initOptionsPage = ->
regexFindMode: CheckBoxOption
scrollStepSize: NumberOption
smoothScroll: CheckBoxOption
+ grabBackfocus: CheckBoxOption
searchEngines: TextOption
searchUrl: NonEmptyTextOption
userDefinedLinkHintCss: TextOption
diff --git a/pages/options.html b/pages/options.html
index d37646c4..6df2c92b 100644
--- a/pages/options.html
+++ b/pages/options.html
@@ -133,6 +133,20 @@ b: http://b.com/?q=%s description
<td verticalAlign="top" class="booleanOption">
<div class="help">
<div class="example">
+ Prevent the page from focusing an input on load
+ </div>
+ </div>
+ <label>
+ <input id="grabBackfocus" type="checkbox"/>
+ Grab back focus
+ </label>
+ </td>
+ </tr>
+ <tr>
+ <td class="caption"></td>
+ <td verticalAlign="top" class="booleanOption">
+ <div class="help">
+ <div class="example">
When enabled, the HUD will not be displayed.
</div>
</div>