Skip to content

Instantly share code, notes, and snippets.

@jgrevich
Created December 4, 2014 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgrevich/77391807dc8bba89fdda to your computer and use it in GitHub Desktop.
Save jgrevich/77391807dc8bba89fdda to your computer and use it in GitHub Desktop.
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
$(document).on 'keypress', (event) ->
alert('You hit event: ' + event.which)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment