jQuery in Action, 2nd edition*
The moose likes Java in General and the fly likes Virtual Keys Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Virtual Keys" Watch "Virtual Keys" New topic
Author

Virtual Keys

Paul Keohan
Ranch Hand

Joined: Mar 15, 2000
Posts: 411
The non-numeric keys (*, /, +, ., -) on the numeric keypad are known as what in the KeyEvent class? VK_SLASH etc. represents the value for the / on the main keypad but not the numeric keypad.
Thanks.

Paul
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Numpad constants
VK_MULTIPLY = 0x6A;
VK_ADD = 0x6B;
VK_SEPARATER = 0x6C; //the "slash" on the numpad
VK_SUBTRACT = 0x6D;
VK_DECIMAL = 0x6E;
VK_DIVIDE = 0x6F;
VK_DELETE = 0x7F;
VK_NUM_LOCK = 0x90;
VK_SCROLL_LOCK = 0x91;
Other related constants:
VK_SLASH = 0x2F;
VK_BACK_SLASH = 0x5C;
VK_PERIOD = 0x2E;
VK_MINUS = 0x2D;
VK_PLUS = 0x0209;

"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Virtual Keys