RFR: 8273506: java Robot API did the 'm' keypress and caused /awt/event/KeyEvent/KeyCharTest/KeyCharTest.html is timing out on macOS 12 [v2]
Sergey Bylokhov
serb at openjdk.java.net
Tue Apr 26 23:52:41 UTC 2022
On Sat, 23 Apr 2022 07:21:51 GMT, Alexander Zuev <kizune at openjdk.org> wrote:
> Ok, starting from the beginning - there is no possibility to press the Function key with Robot, the corresponding key code (OSX_Function - 0x3F) has not mapped to any of the keys available to Robot. Function key does not act like a caps lock - it acts like a shift. Just like a shift, it can only be fixated by the accessibility feature "sticky keys". Once Function key is released the global state should be changed in a way as if this key is not active. We do not issue key press or key release event for the Function key. The reason of why global state is being changed this way when we issue key press/key release sequence for a totally unrelated key (OSX_DownArrow - 0x7D) is unknown, it happens in the native code outside of our control. All we can do is to eliminate the consequences of this action that started to cause problems in Mac OS X 12.
That description is very helpful, thank you. Based on that it looks like this is a bug in the macOS, did we report it to the Apple?
-------------
PR: https://git.openjdk.java.net/jdk/pull/8320
More information about the client-libs-dev
mailing list