Saturday, 17 August 2013

The Tab key isn't being detected in Java on Mac

The Tab key isn't being detected in Java on Mac

I'm trying to make an application which uses the tab key to do something.
I've implemented the KeyListener interface and I'm able to program all the
other keys. But when I press the Tab key and in the keyPressed() method I
put this:
System.out.println(ke.getKeyCode());
I get no output. The 'Tab' key is the only which gives no output. All the
other keys have their relative keycode printed. Why is this?

No comments:

Post a Comment