Hello.
Where can I find all the virtual key (<enter> or <return>) as constant
values ?
Thanks :)
> Where can I find all the virtual key (<enter> or <return>) as constant
> values ?
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/KeyEvent.html#VK_ENTER

Signature
Thomas
Thomas Hawtin - 10 Aug 2007 14:23 GMT
>> Where can I find all the virtual key (<enter> or <return>) as constant
>> values ?
> http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/KeyEvent.html#VK_ENTER
Years ago, on one Solaris machine I found the numeric gave an unusual
high value (65 thousand odd). Presumably just an odd configuration
somewhere. Running this machine with Solaris and a Sun keyboard produced
the expected value.
Tom Hawtin
Eitan M - 10 Aug 2007 14:41 GMT
Thanks .
javayahtzee@gmail.com - 10 Aug 2007 16:15 GMT
> Thanks .
If you want code that is reliable on all machines you should look in
the KeyEvent class for the constants. for example the constant for
enter is 'KeyEvent.vk_enter'.
All the keys have their constants with the prefix 'vk_' you can look
in the constants section of the KeyEvent html document to find the
names of all the constants.