-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Prevents CTRL+P from being masked by a given accelerator defined in FXML (#553) #593
Conversation
… in FXML. Hence allowing to show preview with CTRL+P.
app/src/main/java/com/oracle/javafx/scenebuilder/app/DocumentWindowController.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. I've tested with an FXML file that has the accelerator on Mac (but it didn't happen) and Windows (failed before this PR, passes after it).
I wonder why the accelerator from the FXML gets installed and somehow takes precedence, but your fix won't hurt in any case.
I actually have to admit, that this behavior also irritated me. However, it seems to be confusing. I'm updating this branch to see if it still works after all those recent changes. |
This quick fix will prevent
CTRL
+P
from being blocked by a accelerator defined in an FXML.CTRL
+P
is used to display the preview window and it works with some FXMLs, not with others.A clean solution to this requires lot more work. With the current way the Scene Builder works, the problem can occurr with any other accelerator defined in Scene Builder.
Issue
Fixes #553
Progress