permaculture playing cards*
The moose likes HTML, CSS and JavaScript and the fly likes how to catch keyboard scrolling buttons event? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to catch keyboard scrolling buttons event?" Watch "how to catch keyboard scrolling buttons event?" New topic
Author

how to catch keyboard scrolling buttons event?

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
onKeyPress is for all the buttons, I need sth specific to up, down, right and left arrow key.

TIA.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Look at the keycode of the presses. They have ids.

Eric
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by Eric Pascarello:
Look at the keycode of the presses. They have ids.

Eric


Thanks Eric.

But surprisingly, I am able to capture all the keys except up, down, right and left arrow key.

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6


Eric
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Thanks a ton Eric.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to catch keyboard scrolling buttons event?