<AWT Dev> JDK-8028617: Dvorak keyboard mapping not honored when ctrl key pressed

Edward Burns edward.burns at oracle.com
Mon Dec 2 15:43:28 PST 2013


Hello AWT dev,

I have a pet issue that prevents me from using NetBeans 7.4+ on Mac OS X
because I use the DVORAK keyboard layout [1].  Basically, when I press
Ctrl-e to go to the end of the line, the system things I'm pressing
Ctrl-d, and deletes a character.  According to this research from Svata
Dedic on the NetBeans team, it's a problem in
KeyEvent.getExtendedKeyCode().

Svata Dedic wrote:

SD> This seems as a defect in JDK/MacOS X, specifically the method
SD> KeyEvent.getExtendedKeyCode() fails to produce the correct key code
SD> (returns VK_UNDEFINED).

SD> The KeyEvent that arrives to the NetBeans for pressing "E" key has
SD> the following properties on both Linux (working) and MacOS X (not
SD> working):

SD> * keyText='E'
SD> * keyChar='.'
SD> * keyCode=69

SD> extendedKeyCode returns 46 on Linux, 0 on MacOS X. 

I'm attempting to build the relevant parts of OpenJDK to attempt to fix
this myself, but I need some help getting started.

Thanks,

Ed

-- 



[1] https://bugs.openjdk.java.net/browse/JDK-8028617



More information about the awt-dev mailing list