diff options
| author | Stephen Blott | 2015-05-29 14:20:19 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2015-05-29 14:22:31 +0100 | 
| commit | 6a97f4cf5e1f1c21336d2fce9da20c3bc5633d05 (patch) | |
| tree | f8351ad881a1e90b27a0cbeaa4d5391c80c6b5a1 /pages | |
| parent | 087f7e8d180c9048ee32bdb243eabe2c15021fc7 (diff) | |
| download | vimium-6a97f4cf5e1f1c21336d2fce9da20c3bc5633d05.tar.bz2 | |
Prepopulate @customSearchMode in vomnibar.
This avoids a flicker whereby the keyword is first inserted into the
input, then removed.
Diffstat (limited to 'pages')
| -rw-r--r-- | pages/vomnibar.coffee | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/pages/vomnibar.coffee b/pages/vomnibar.coffee index 71f22900..d5659fdc 100644 --- a/pages/vomnibar.coffee +++ b/pages/vomnibar.coffee @@ -17,6 +17,7 @@ Vomnibar =        query: ""        newTab: false        selectFirst: false +      keyword: null      extend options, userOptions      extend options, refreshInterval: if options.completer == "omni" then 150 else 0 @@ -28,6 +29,7 @@ Vomnibar =      @vomnibarUI.setRefreshInterval options.refreshInterval      @vomnibarUI.setForceNewTab options.newTab      @vomnibarUI.setQuery options.query +    @vomnibarUI.setKeyword options.keyword      @vomnibarUI.update true    hide: -> @vomnibarUI?.hide() @@ -40,6 +42,7 @@ class VomnibarUI      @initDom()    setQuery: (query) -> @input.value = query +  setKeyword: (keyword) -> @customSearchMode = keyword    setInitialSelectionValue: (@initialSelectionValue) ->    setRefreshInterval: (@refreshInterval) ->    setForceNewTab: (@forceNewTab) -> | 
