|
|
@ -14,7 +14,7 @@ class app.views.Search extends app.View
|
|
|
|
submit: 'onSubmit'
|
|
|
|
submit: 'onSubmit'
|
|
|
|
|
|
|
|
|
|
|
|
@shortcuts:
|
|
|
|
@shortcuts:
|
|
|
|
typing: 'autoFocus'
|
|
|
|
typing: 'focus'
|
|
|
|
altG: 'google'
|
|
|
|
altG: 'google'
|
|
|
|
altS: 'stackoverflow'
|
|
|
|
altS: 'stackoverflow'
|
|
|
|
|
|
|
|
|
|
|
@ -34,9 +34,8 @@ class app.views.Search extends app.View
|
|
|
|
$.on window, 'focus', @autoFocus
|
|
|
|
$.on window, 'focus', @autoFocus
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
focus: ->
|
|
|
|
focus: =>
|
|
|
|
@delay =>
|
|
|
|
@input.focus() unless document.activeElement is @input
|
|
|
|
@input.focus() unless document.activeElement is @input
|
|
|
|
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
autoFocus: =>
|
|
|
|
autoFocus: =>
|
|
|
|