diff options
| author | Stephen Blott | 2015-05-31 09:52:50 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-05-31 09:52:50 +0100 |
| commit | bd07321766056cccd083aa69254abc8146bd5266 (patch) | |
| tree | 59a9300cd4a0806f2f6072db406e00edf80674b4 /pages/vomnibar.coffee | |
| parent | 8b0c610fb68573dbd839133fbc315521db6161f6 (diff) | |
| parent | 5930a6e3510f2bd052771601581aa410728d68e3 (diff) | |
| download | vimium-bd07321766056cccd083aa69254abc8146bd5266.tar.bz2 | |
Merge pull request #1697 from smblott-github/vomnibar-map-with-prepopulated-text
Direct keyboard access to custom-search engines via keyword flag
Diffstat (limited to 'pages/vomnibar.coffee')
| -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) -> |
