Sha256: a5014a8273158c76fd37a045a7d9d9021224d9673cb3ac6065e142c8d7b274a9

Contents?: true

Size: 460 Bytes

Versions: 3

Compression:

Stored size: 460 Bytes

Contents

#
# start looking on App.trigger 'ctrlf'
# looking for search-key - CTRL-F
#
$(App).on 'ctrlf', ->

  #
  # watch out for search key - CTRL-F
  $(document).keypress (e) ->
    if (e.which==6)
      checkWebkitandIE=1
    else
      checkWebkitandIE=0

    if (e.which==102 && e.ctrlKey)
      checkMoz=1
    else
      checkMoz=0

    if (checkWebkitandIE || checkMoz)
      if $('input.search-list')
        $('input.search-list').focus()
    # console.log e

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
abstracted-0.2.7 app/assets/javascripts/abstracted/keypress.coffee
abstracted-0.2.6 app/assets/javascripts/abstracted/keypress.coffee
abstracted-0.2.5 app/assets/javascripts/abstracted/keypress.coffee