On Fri, 13 Mar 2026 04:45:49 GMT, Alexander Zvegintsev <[email protected]> 
wrote:

>> `XKeysymToKeycode`  returns 0 for `XK_Mode_Switch` on modern systems. 
>> Therefore `XK_ISO_Level3_Shift` has been added as an 
>> [alternative](https://unix.stackexchange.com/a/55154).
>> 
>> This works for both X11 and Wayland sessions.
>> 
>> ---
>> 
>> Testing looks good.
>
> Alexander Zvegintsev has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   add bug id

src/java.desktop/unix/classes/sun/awt/X11/XToolkit.java line 1777:

> 1775:             modeSwitchTmp = 
> keysymToPrimaryKeycode(XKeySymConstants.XK_ISO_Level3_Shift);
> 1776:         }
> 1777:         final int modeSwitch = modeSwitchTmp;

Copyright year should be bumped

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

PR Review Comment: https://git.openjdk.org/jdk/pull/30218#discussion_r2932700732

Reply via email to