RFR: 8267374: (macos) Left Option+Up/Down arrow dont traverse to beginning/end of line in textarea [v3]
Prasanta Sadhukhan
psadhukhan at openjdk.org
Fri Jun 24 08:08:46 UTC 2022
On Fri, 24 Jun 2022 03:13:14 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> [JDK-8151136](https://bugs.openjdk.org/browse/JDK-8151136) was about the handling of the right alt key?
Yes. As per the comments on the bug
Cause of the problem:
On OS X AltGraph functionality was not implemented.
Fix:
Right Option key is defined to behave as AltGraph key on OS X. Left Option key only act as Alt key.
Now, our key bindings are all Alt Key based.
https://urldefense.com/v3/__https://github.com/openjdk/jdk/blob/master/src/java.desktop/macosx/classes/com/apple/laf/AquaKeyBindings.java*L89__;Iw!!ACWV5N9M2RV99hQ!PjuWn3e0Dtdx0Uux1T5kPZDYwInd_M8ecnJj8J2I15VRXVDwaI4zCLQq8y71o2a0Ybi8pAeNBTqJ7rphBKLsXpI-FX5xFA$
so it used to work for Right Option key till this fix was integrated...It still works for Left Option key as it is mapped to Alt..
Now it return VK_ALT_GRAPH and we do not have keybindings for that.. I do not see anywhere in any L&F ALT_GRAPH is used
so either we need to have VK_ALT as used before the fix (which is why I reverted) or somewhat use ALT_GRAPH binding.
Do you know how to have "ALT GRAPH" key binding?
-------------
PR: https://git.openjdk.org/jdk/pull/9230
More information about the client-libs-dev
mailing list