Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
Virtual Keys
Paul Keohan
Ranch Hand
Posts: 411
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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"
Posts: 8521
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Remember to always leap before you look. But always take the time to smell the tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Java Robot - how to press the keypad enter key
Java Calculator
IntelliJ IDEA arrow navigation does not work with numeric keypad arrow keys
Foreign language
Right Click on Snow Leopard
More...