Hi everybody,
I'm a rails beginner and I'm trying to figure out how to react to a keyboard press in an rjs-file and then do some stuff to the page. It should go something like this:
if @correct #do something #wait for the user to press any key #do something end end
Does anybody know how to do this?
Thanks in advance! Christopher