A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Joined: Nov 22, 2008
Apr 23, 2001 05:10:00
I want to have a counter in the method keyTyped(
but I don't want to count 'backspace', 'space', 'escape', F1-F12, 'ctrl', 'shift' and 'tab'.
Is there anyway of doing this?
Joined: Sep 29, 2000
Apr 23, 2001 09:26:00
Of course you can just look the hard way for VK_BACK_SPACE, VK_SPACE, VK_ESCAPE etc and ignore those before you do your counting.
"JavaRanch, where the deer and the Certified play" - David O'Meara
rocket mass heater
Help! About hotkey
Not getting key pressed event.
Aren't Listeners very strange creatures?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015