On Thu, 21 Mar 2024 17:33:22 GMT, Harshitha Onkar <[email protected]> wrote:

>> test/jdk/java/awt/im/bug4490692.java line 95:
>> 
>>> 93:     @Override
>>> 94:     public void keyPressed(KeyEvent e) {
>>> 95:         if (e.getKeyCode() == 23 || e.getKeyCode() == 60) {
>> 
>>>  CASE 2: This step is automated and applicable for both
>> keyboards - LINUX & SOLARIS SPARC.
>> When Tab key is pressed it should generate a-acute (à)
>> character, this test automatically passes if the correct character
>> is generated on keypress else fails.
>> 
>> Unfortunately this check doesn't work for me:
>> `java.awt.event.KeyEvent[KEY_PRESSED,keyCode=0,keyText=Unknown keyCode: 
>> 0x0,keyChar='á',keyLocation=KEY_LOCATION_UNKNOWN,rawCode=23,primaryLevelUnicode=225,scancode=0,extendedKeyCode=0x10000e1]
>>  on javax.swing.JTextField...`
>> 
>> The `keycode` is 0, `rawCode` is desired `23`, but we can't get it it unless 
>> parsing the output of `e.toString()`
>> 
>> The `e.getKeyChar() == 0x00e1` check is still valid thought.
>
> @azvegint Thanks for checking it. Update the code & added the rawCode check 
> now. Can you please re-review it.

Now it works for the tab case, thank you.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/18402#discussion_r1534579209

Reply via email to