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

WebKit doubles Keystrokes #1200

Open
N1k145 opened this issue Apr 30, 2024 · 2 comments
Open

WebKit doubles Keystrokes #1200

N1k145 opened this issue Apr 30, 2024 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed Linux/GTK Happens on Linux

Comments

@N1k145
Copy link

N1k145 commented Apr 30, 2024

Describe the bug
When having the Focus in a WebKit Browser, keybindings are triggered twice.

I did a bit of Debugging and notices that there are coming two Events from the Display Que, but I was not able to determine how the second event ended up on the Que.

To Reproduce
A standalone SWT snippet to reproduce the behavior (preferable):

import javax.annotation.PostConstruct;

import org.eclipse.swt.SWT;
import org.eclipse.swt.browser.Browser;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;

public class BrowserPart {

   @PostConstruct
   public void build(final Composite parent) {
      Browser browser = new Browser(parent, SWT.NONE);
      browser.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));

      browser.setUrl("https://google.com");
   }
}

Steps to reproduce the behavior:
Alternatively, open the "Internal Browser" View in Eclipse

Click Ctrl + H, the Search Dialog opens
Click Esc or Cancle
The Dialog closes
The Dialog opens again

Expected behavior
The Dialog opens once

Screenshots

2024-04-30.08-29-46.mp4

Environment:

  1. Select the platform(s) on which the behavior is seen:
    • All OS
    • Windows
    • Linux
    • macOS
  1. Additional OS info (e.g. OS version, Linux Desktop, etc)
    Ubuntu 22.4 X11

  2. JRE/JDK version
    Java 17 Coretto

Version since
At least 23-09 (4.29)

Workaround (or) Additional context
Add any other context about the problem here.
Any known workarounds for the problem?

No

@jukzi
Copy link
Contributor

jukzi commented May 13, 2024

@N1k145 if you need a fix please provide a PR as there is currently nobody fixing such errors.

@jukzi jukzi added the bug Something isn't working label May 13, 2024
@N1k145
Copy link
Author

N1k145 commented May 13, 2024

@jukzi thank you for the hint. But I have to say that I have no idea how to tackle this. As this probably involves the native SWT/GTK parts from what I have seen during my initial investigation.

@fedejeanne fedejeanne added the help wanted Extra attention is needed label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed Linux/GTK Happens on Linux
Projects
None yet
Development

No branches or pull requests

3 participants