• Post Reply Bookmark Topic Watch Topic
  • New Topic

Key event problem

 
colin shuker
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm implementing java.awt.event.KeyListener, I would like to be able to know when SHIFT+'u' is entered.

This is kind of the same as 'U', but if caps-lock is held on, then just pressing 'u' will produce 'U', so I really want to know how to regonise shift+'u'.

I'm guessing I need to do this in keyTyped(KeyEvent e) but I'm not sure how.

Can anyone help? Thanks
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!