G
Graham Matthews
Hi
We are using jdk 1.4 under Mac OS X. A team-member used the
following code to detect an enter keypress.
if (e.getKeyChar() == KeyEvent.VK_ENTER)
{
if (KeyEvent.KEY_LOCATION_NUMPAD == e.getKeyLocation())
{
// enter key detected
}
This works under Windoze but not Mac OS X. I am guessing this code
is garbagio.
Help!
graham
We are using jdk 1.4 under Mac OS X. A team-member used the
following code to detect an enter keypress.
if (e.getKeyChar() == KeyEvent.VK_ENTER)
{
if (KeyEvent.KEY_LOCATION_NUMPAD == e.getKeyLocation())
{
// enter key detected
}
This works under Windoze but not Mac OS X. I am guessing this code
is garbagio.
Help!
graham