RFR: 8242544: CMD+ENTER key event crashes the application when invoked on dialog
Johan Vos
jvos at openjdk.java.net
Wed Jan 12 15:46:43 UTC 2022
On Tue, 11 Jan 2022 22:18:53 GMT, Martin Fox <duke at openjdk.java.net> wrote:
> The OS crashes if the contentView of a window is set to nil while handling processKeyEquivalent. With this PR we just set the contentView to a basic do-nothing NSView for the interim.
This looks good with the current tools/OS behaviour. It is still a bit of a hack, which may result in unexpected behaviour when the macos-specific tools change.
But this is a general observation with macos, so I believe this is indeed the best (and least intrusive way) to prevent the crashes.
-------------
Marked as reviewed by jvos (Reviewer).
PR: https://git.openjdk.java.net/jfx/pull/714
More information about the openjfx-dev
mailing list