RFR: 8242544: CMD+ENTER key event crashes the application when invoked on dialog

Kevin Rushforth kcr at openjdk.java.net
Wed Jan 12 14:58:34 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.

The fix looks good, and as mentioned above, is minimally intrusive. I also ran a full set of tests with no problems. It would be helpful to add a manual test as part of this PR (maybe based on the test from the bug report).

-------------

PR: https://git.openjdk.java.net/jfx/pull/714


More information about the openjfx-dev mailing list