• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to catch keyboard scrolling buttons event?

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
onKeyPress is for all the buttons, I need sth specific to up, down, right and left arrow key.

TIA.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the keycode of the presses. They have ids.

Eric
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Eric
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a ton Eric.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic