diff options
| author | Stephen Blott | 2015-05-05 14:47:02 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-05-05 14:47:06 +0100 |
| commit | 7c855af38cfdf32a05b90b2da4711720ebac8865 (patch) | |
| tree | 1ce262948ac2aa6992ac8f48b7bad82bb1748ea1 /pages | |
| parent | e21896e2af7f28eb17b5b98a32cfce32fe171d3a (diff) | |
| download | vimium-7c855af38cfdf32a05b90b2da4711720ebac8865.tar.bz2 | |
Search completion; user is typing.
Add plumbing to allow the front end to directly inform completers when
the user is typing.
Diffstat (limited to 'pages')
| -rw-r--r-- | pages/vomnibar.coffee | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pages/vomnibar.coffee b/pages/vomnibar.coffee index 58513dc2..8a070df6 100644 --- a/pages/vomnibar.coffee +++ b/pages/vomnibar.coffee @@ -178,6 +178,7 @@ class VomnibarUI @updateSelection() updateOnInput: => + @completer.userIsTyping() # If the user types, then don't reset any previous text, and re-enable auto-select. if @previousInputValue? @previousInputValue = null @@ -253,6 +254,9 @@ class BackgroundCompleter @filterPort.postMessage id: id, name: @name, query: query + userIsTyping: -> + @filterPort.postMessage name: @name, userIsTyping: true + extend BackgroundCompleter, # # These are the actions we can perform when the user selects a result in the Vomnibox. |
