We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a8be50 commit 504f95eCopy full SHA for 504f95e
assets/javascripts/views/search/search_scope.coffee
@@ -7,6 +7,7 @@ class app.views.SearchScope extends app.View
7
8
@events:
9
keydown: 'onKeydown'
10
+ textInput: 'onTextInput'
11
12
@routes:
13
after: 'afterRoute'
@@ -100,6 +101,12 @@ class app.views.SearchScope extends app.View
100
101
$.stopEvent(event) if @doc
102
return
103
104
+ onTextInput: (event) =>
105
+ if event.data == ' ' and app.isMobile()
106
+ @search @input.value[0...@input.selectionStart]
107
+ $.stopEvent(event) if @doc
108
+ return
109
+
110
extractHashValue: ->
111
if value = @getHashValue()
112
newHash = $.urlDecode(location.hash).replace "##{SEARCH_PARAM}=#{value} ", "##{SEARCH_PARAM}="
0 commit comments