`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. ------------- Commit messages: - 8376050: awt/event/MouseEvent/AltGraphModifierTest/AltGraphModifierTest.java fails on Ubuntu Changes: https://git.openjdk.org/jdk/pull/30218/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30218&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8376050 Stats: 5 lines in 1 file changed: 4 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/30218.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30218/head:pull/30218 PR: https://git.openjdk.org/jdk/pull/30218
