<AWT Dev> [11] RFR 8130655: OS X: keyboard input in textfield is not possible if the window contained textfield is owned by EmbeddedFrame

Dmitry Markov dmitry.markov at oracle.com
Mon Jun 25 10:35:35 UTC 2018


Could you review a fix for jdk11, please?

 bug: https://bugs.openjdk.java.net/browse/JDK-8130655
 webrev: http://cr.openjdk.java.net/~dmarkov/8130655/webrev.00/

Problem description:
On OS X platform a window does not receive keyboard input if it is owned by embedded frame. According to the current implementation “simple window” (not frame or dialog) is NOT natively focusable, (i.e. SHOULD_BECOME_KEY and SHOULD_BECOME_MAIN bits are not set for its native peer); embedded frame receives events from the embedder, (e.g. browser, etc.) but does not translate them to the its own child windows. So if “simple window” is owned by embedded frame it is impossible for the window to receive any key events. 

Set SHOULD_BECOME_KEY and SHOULD_BECOME_MAIN bits for simple window which is owned by embedded frame.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20180625/1a89c560/attachment.html>

More information about the awt-dev mailing list