aboutsummaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
authorStephen Blott2015-05-31 09:52:50 +0100
committerStephen Blott2015-05-31 09:52:50 +0100
commitbd07321766056cccd083aa69254abc8146bd5266 (patch)
tree59a9300cd4a0806f2f6072db406e00edf80674b4 /pages
parent8b0c610fb68573dbd839133fbc315521db6161f6 (diff)
parent5930a6e3510f2bd052771601581aa410728d68e3 (diff)
downloadvimium-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')
-rw-r--r--pages/vomnibar.coffee3
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) ->