-
-
Notifications
You must be signed in to change notification settings - Fork 542
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
Bad key map for < #45
Comments
I checked in the Same with a german Keyboard : It seems that shift + |
Key Meaning that I'm really curious, if that is some bug originates from xorg or keyboard layout itself. Or if this was somehow intended by original creators. I'm using Slovakian keyboard layout, and no problems there either. |
Or maybe just bad default variant of US keyboard is being used. It looks like the right bottom keyboard, that indeed has a key that produces with
|
I suspect the |
Interestingly, with UK keyboard it is working properly. Or when switching to |
|
but... I have no fix in mind.... Trying to replace the |
Yeah, that looks as the only way to fix it for now. It is some pretty dirty workaround, but effective. |
Sorry, I did not test properly. |
It would be beneficial to have some test, that can check all of the keys, and ideally in multiple languages. So right now, |
|
From the comment in
I'll test both of them and see if I find reason to switch to |
I investigated and found following: To clarify some terminology used here (as I understood it after hours of researching, so note that):
One KeyCode can have multiple KeySyms. What we get from a browser is a KeySym. When we want to send it to the server, we need to find corresponding KeyCode for it, in order to simulate physical key being pressed on a keyboard. This is done using This works almost all the time... except when there is multiple Pressing left We need to investigate KeyCodes, that were sent to xorg. Searching for
When we look for the
Since
That would mean, we need to keep track of pressed modifiers and search according to them. Another solution could be, using "empty" keymap and on each keypress allocating new KeyCode getting entirely rid of layout. Although, I am not sure how that would be working and if it would be even possible. Or simply disabling / remapping that single key somehow. Other vendors (novnc, tigervnc...) have faced exactly this problem, it looks like they solved it by having custom mapping rather than relaying on |
Same problem here TigerVNC/tigervnc#491 with their solution. |
Wow, good job diving in this deep. I worked the solution from tigervnc into the code. (#46) |
Fixed by #46. |
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.8 to 7.23.2. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse) --- updated-dependencies: - dependency-name: "@babel/traverse" dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
When writing
<
on US keyboard (shift
+,
) it writes>
instead. In Guacamole (their keyboard is being used) it works without issues.The text was updated successfully, but these errors were encountered: