|
|
@ -91,7 +91,6 @@ class app.views.SearchScope extends app.View
|
|
|
|
onClick: (event) =>
|
|
|
|
onClick: (event) =>
|
|
|
|
if event.target is @tag
|
|
|
|
if event.target is @tag
|
|
|
|
@reset()
|
|
|
|
@reset()
|
|
|
|
$.trigger @input, 'input'
|
|
|
|
|
|
|
|
$.stopEvent(event)
|
|
|
|
$.stopEvent(event)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
@ -99,7 +98,6 @@ class app.views.SearchScope extends app.View
|
|
|
|
if event.which is 8 # backspace
|
|
|
|
if event.which is 8 # backspace
|
|
|
|
if @doc and @input.selectionEnd is 0
|
|
|
|
if @doc and @input.selectionEnd is 0
|
|
|
|
@reset()
|
|
|
|
@reset()
|
|
|
|
$.trigger @input, 'input'
|
|
|
|
|
|
|
|
$.stopEvent(event)
|
|
|
|
$.stopEvent(event)
|
|
|
|
else if not @doc and @input.value
|
|
|
|
else if not @doc and @input.value
|
|
|
|
return if event.ctrlKey or event.metaKey or event.altKey or event.shiftKey
|
|
|
|
return if event.ctrlKey or event.metaKey or event.altKey or event.shiftKey
|
|
|
|