Skip to content
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

8200224: Multiple press event when JFXPanel gains focus #25

wants to merge 14 commits into from
@@ -446,7 +446,7 @@ protected void processMouseEvent(MouseEvent e) {
(e.getButton() == MouseEvent.BUTTON1)) {
if (isFocusable() && !hasFocus()) {
// This fixes JDK-8087914 without causing JDK-8200224
// The extra simulated mouse pressed event is removed by making the JavaFX scene focused.
// It is safe, because in JavaFX only the method "setFocused(true)" is called,
// which doesn't have any side-effects when called multiple times.
int focusCause = AbstractEvents.FOCUSEVENT_ACTIVATED;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.