-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
The System steals keyboard events for certain system keyboard shortcuts, e.g. Cmd+Shift+4 #1799
Comments
Unfortunately, we don't have access to the low-level events like TigerVNC has, so we can't apply the same workaround. Likely this needs to be fixed in the browsers so that they send Have you reported the issue to the different browsers? |
Thanks for reply. I am aware we can't access the low level API hack that TigerVNC is doing. Unfortunately, this bug is also reproducible on Safari & Mozilla. What would you advise as potential interim solution, for example detecting that Command and Shift is pressed and scheduling Command & Shift key down events to server. Versions: |
I found similar issues attempted fix by KasmVNC's fork of noVNC will test this solution. kasmtech@2b7e332 |
Trying to perfectly detect every possible troublesome shortcut would be a maintenance nightmare. So what Kasm has done is probably a more feasible mitigation of the issue. It's important that the issue get reported to all the browsers, though, so a proper solution can be available long term. |
Raised bug to chromium https://bugs.chromium.org/p/chromium/issues/detail?id=1474894#c3 |
Many thanks. I don't suppose you could also inform Firefox and Safari (WebKit) of this issue? |
Likewise. Raised to all 3 of them. WebKit: https://bugs.webkit.org/show_bug.cgi?id=260866 |
Weird. |
Screenshot will work fine but keyup event will be swallowed. What was version of Chrome and Safari that you tried with ? |
|
The issue discussed here is a macOS specific problem, so I'm afraid that is some other problem. |
The client running the browser is a Mac indeed, the server where noVNC server is running on though ... is not specified so I assume is a linux machine. |
Describe the bug
The system steals keyboard events for certain system keyboard shortcuts, e.g. Cmd+Shift+4. Unfortunately, this isn't considered a focus loss, so the server doesn't realize it has lost a few keyboard events and can end up in a confused state.
To Reproduce
Steps to reproduce the behavior:
Press CMD+SHIFT+4
Take screenshot
Click on server and see that server is confused as you can't click but can only drag.
Expected behavior
noVNC should catch focus loss and reset keyboard state.
Screenshots
Client (please complete the following information):
Server (please complete the following information):
Additional context
Here is this exact problem solved by tigervnc TigerVNC/tigervnc@4f6d489
The text was updated successfully, but these errors were encountered: