<AWT Dev> [9] Review request for 8028617: Dvorak keyboard mapping not honored when ctrl key pressed

Anthony Petrov anthony.petrov at oracle.com
Fri May 23 16:14:11 UTC 2014

On 5/23/2014 8:04 PM, anton nashatyrev wrote:
>      could you please point me to the i18n tests you have mentioned?

test/java/awt/im ...? In both open and closed repos.

>      from non-English I'd tested only Russian locale. Do you have in
> mind some special cases for other locales?

No, RU isn't a particularly interesting layout in this respect. Please 
try at least DE and FR keyboards. The Q, Y, and Z keys are exchanged on 
those. They support special characters on OEM keys (such as -=[];"/ 
etc.) Also, they support dead keys. E.g. on a FR kbd, try pressing [ and 
then some other character key. Also try AltGr+7 and then again some 
other character key. After pressing a dead key, try to press a letter 
key with the Shift modifier. Etc.

best regards,

> Thanks!
> Anton.
> On 23.05.2014 19:44, Anthony Petrov wrote:
>> Thanks for confirming that. I'm OK with the fix then.
>> However, I also suggest to run some i18n tests and also try some
>> non-English keyboard layouts (DE, FR, JP, etc.) with special
>> characters and dead keys to ensure they aren't broken.
>> --
>> best regards,
>> Anthony
>> On 5/23/2014 7:39 PM, anton nashatyrev wrote:
>>> Anthony,
>>>      yes, the CapsLock works for me as well.
>>> Thanks!
>>> Anton
>>> On 23.05.2014 19:35, Anthony Petrov wrote:
>>>> Hi Anton,
>>>> If you activate the CAPS LOCK mode and type some characters, will
>>>> those be presented as capital letters in Swing/AWT's text fields and
>>>> text areas after your fix? (see [1] for a related FX bug)
>>>> [1] https://javafx-jira.kenai.com/browse/RT-16616
>>>> --
>>>> best regards,
>>>> Anthony
>>>> On 5/23/2014 7:14 PM, anton nashatyrev wrote:
>>>>> Hello,
>>>>>      could you please review the following fix:
>>>>> fix: http://cr.openjdk.java.net/~anashaty/8028617/9/webrev.00/
>>>>> <http://cr.openjdk.java.net/%7Eanashaty/8028617/9/webrev.00/>
>>>>> bug: https://bugs.openjdk.java.net/browse/JDK-8028617
>>>>>      Problem: Dvorak keyboard mapping not honored when Ctrl key
>>>>> pressed
>>>>>      Evaluation:
>>>>>          The problem is in the AWTView.m:deliverJavaKeyEventHelper():
>>>>> for taking a character we use NSEvent::characters which works fine
>>>>> until
>>>>> the Ctrl modifier is pressed. In this case the 'charaters' returns
>>>>> empty
>>>>> string. The typed character is then calculated via key code using the
>>>>> standard keyboard layout. Of course that doesn't work for any other
>>>>> layout including DVORAK.
>>>>>      Fix: We should use NSEvent::charactersIgnoringModifiers property
>>>>> instead (especially taking into account that
>>>>> sun.lwawt.macosx.event.NSEvent constructor parameter name is
>>>>> 'charactersIgnoringModifiers')
>>>>> Thanks!
>>>>> Anton.

More information about the awt-dev mailing list