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

Shift-Accented keys are incorrectly sent to client #1978

Open
gvlx opened this issue Sep 27, 2023 · 0 comments
Open

Shift-Accented keys are incorrectly sent to client #1978

gvlx opened this issue Sep 27, 2023 · 0 comments

Comments

@gvlx
Copy link

gvlx commented Sep 27, 2023

What happened?

In the portuguese pt_PT keyboard the following characters:

Are accessed by pressing SHIFT + the following characters, respectively:

Version

v2.4.0

Git commit hash (if applicable)

3e0d758

If applicable, where did you install Barrier from?

https://github.com/debauchee/barrier/releases

What OSes are you seeing the problem on? (Check all that apply)

Windows

What OS versions are you using?

Windows 10
(possibly other systems on the client too)

Relevant log output

[2023-09-27T09:19:49] DEBUG1: event: button press button=1
[2023-09-27T09:19:49] DEBUG1: onMouseDown id=1
[2023-09-27T09:19:49] DEBUG1: send mouse down to "pad2-ic" id=1
[2023-09-27T09:19:49] DEBUG1: event: button release button=1
[2023-09-27T09:19:49] DEBUG1: onMouseUp id=1
[2023-09-27T09:19:49] DEBUG1: send mouse up to "pad2-ic" id=1
[2023-09-27T09:19:51] DEBUG1: hook: 0x0000000d 0x001c0001
[2023-09-27T09:19:51] DEBUG1: hook: 0x610d000d 0x001c0001
[2023-09-27T09:19:51] DEBUG1: hook: 0x700d000d 0x001c0001
[2023-09-27T09:19:51] DEBUG1: event: Key char=13, vk=0x0d, nagr=0, lParam=0x001c0001
[2023-09-27T09:19:51] DEBUG1: new mask: 0x2000
[2023-09-27T09:19:51] DEBUG1: new mask: 0x2000
[2023-09-27T09:19:51] DEBUG1: onKeyDown id=61197 mask=0x2000 button=0x001c
[2023-09-27T09:19:51] DEBUG1: send key down to "pad2-ic" id=61197, mask=0x2000, button=0x001c
[2023-09-27T09:19:52] DEBUG1: hook: 0x0000000d 0x801c0001
[2023-09-27T09:19:52] DEBUG1: hook: 0x610d000d 0x801c0001
[2023-09-27T09:19:52] DEBUG1: hook: 0x700d000d 0x801c0001
[2023-09-27T09:19:52] DEBUG1: event: Key char=13, vk=0x0d, nagr=0, lParam=0x801c0001
[2023-09-27T09:19:52] DEBUG1: new mask: 0x2000
[2023-09-27T09:19:52] DEBUG1: new mask: 0x2000
[2023-09-27T09:19:52] DEBUG1: onKeyUp id=61197 mask=0x2000 button=0x001c
[2023-09-27T09:19:52] DEBUG1: send key up to "pad2-ic" id=61197, mask=0x2000, button=0x001c
[2023-09-27T09:19:53] DEBUG1: hook: 0x0000000d 0x001c0001
[2023-09-27T09:19:53] DEBUG1: hook: 0x610d000d 0x001c0001
[2023-09-27T09:19:53] DEBUG1: hook: 0x700d000d 0x001c0001
[2023-09-27T09:19:53] DEBUG1: event: Key char=13, vk=0x0d, nagr=0, lParam=0x001c0001
[2023-09-27T09:19:53] DEBUG1: new mask: 0x2000
[2023-09-27T09:19:53] DEBUG1: new mask: 0x2000
[2023-09-27T09:19:53] DEBUG1: onKeyDown id=61197 mask=0x2000 button=0x001c
[2023-09-27T09:19:53] DEBUG1: send key down to "pad2-ic" id=61197, mask=0x2000, button=0x001c
[2023-09-27T09:19:53] DEBUG1: hook: 0x0000000d 0x801c0001
[2023-09-27T09:19:53] DEBUG1: hook: 0x610d000d 0x801c0001
[2023-09-27T09:19:53] DEBUG1: hook: 0x700d000d 0x801c0001
[2023-09-27T09:19:53] DEBUG1: event: Key char=13, vk=0x0d, nagr=0, lParam=0x801c0001
[2023-09-27T09:19:53] DEBUG1: new mask: 0x2000
[2023-09-27T09:19:53] DEBUG1: new mask: 0x2000
[2023-09-27T09:19:53] DEBUG1: onKeyUp id=61197 mask=0x2000 button=0x001c
[2023-09-27T09:19:53] DEBUG1: send key up to "pad2-ic" id=61197, mask=0x2000, button=0x001c
[2023-09-27T09:19:57] DEBUG1: hook: 0x000000bf 0x002b0001
[2023-09-27T09:19:57] DEBUG1: hook: 0x6fbf007e 0x002b0001
[2023-09-27T09:19:57] DEBUG1: hook: 0x000000bf 0x802b0001
[2023-09-27T09:19:57] DEBUG1: hook: 0x400000bf 0x802b0001
[2023-09-27T09:19:58] DEBUG1: hook: 0x000000bf 0x002b0001
[2023-09-27T09:19:58] DEBUG1: hook: 0x62bf007e 0x002b0001
[2023-09-27T09:19:58] DEBUG1: event: Key char=126, vk=0xbf, nagr=0, lParam=0x002b0001
[2023-09-27T09:19:58] DEBUG1: new mask: 0x2000
[2023-09-27T09:19:58] DEBUG1: new mask: 0x2000
[2023-09-27T09:19:58] DEBUG1: event: Key char=126, vk=0xbf, nagr=0, lParam=0x802b0001
[2023-09-27T09:19:58] DEBUG1: new mask: 0x2000
[2023-09-27T09:19:58] DEBUG1: new mask: 0x2000
[2023-09-27T09:19:58] DEBUG1: hook: 0x70bf007e 0x002b0001
[2023-09-27T09:19:58] DEBUG1: event: Key char=126, vk=0xbf, nagr=0, lParam=0x002b0001
[2023-09-27T09:19:58] DEBUG1: new mask: 0x2000
[2023-09-27T09:19:58] DEBUG1: new mask: 0x2000
[2023-09-27T09:19:58] DEBUG1: onKeyDown id=126 mask=0x2000 button=0x002b
[2023-09-27T09:19:58] DEBUG1: send key down to "pad2-ic" id=126, mask=0x2000, button=0x002b
[2023-09-27T09:19:58] DEBUG1: onKeyUp id=126 mask=0x2000 button=0x002b
[2023-09-27T09:19:58] DEBUG1: send key up to "pad2-ic" id=126, mask=0x2000, button=0x002b
[2023-09-27T09:19:58] DEBUG1: onKeyDown id=126 mask=0x2000 button=0x002b
[2023-09-27T09:19:58] DEBUG1: send key down to "pad2-ic" id=126, mask=0x2000, button=0x002b
[2023-09-27T09:19:58] DEBUG1: hook: 0x000000bf 0x802b0001
[2023-09-27T09:19:58] DEBUG1: hook: 0x62bf007e 0x802b0001
[2023-09-27T09:19:58] DEBUG1: event: Key char=126, vk=0x00, nagr=0, lParam=0x00000000
[2023-09-27T09:19:58] DEBUG1: event: Key char=126, vk=0x00, nagr=0, lParam=0x80000000
[2023-09-27T09:19:58] DEBUG1: hook: 0x70bf007e 0x802b0001
[2023-09-27T09:19:58] DEBUG1: event: Key char=126, vk=0xbf, nagr=0, lParam=0x802b0001
[2023-09-27T09:19:58] DEBUG1: new mask: 0x2000
[2023-09-27T09:19:58] DEBUG1: new mask: 0x2000
[2023-09-27T09:19:58] DEBUG1: onKeyUp id=126 mask=0x2000 button=0x002b
[2023-09-27T09:19:58] DEBUG1: send key up to "pad2-ic" id=126, mask=0x2000, button=0x002b
[2023-09-27T09:19:59] DEBUG1: hook: 0x000000a0 0x002a0001
[2023-09-27T09:19:59] DEBUG1: hook: 0x60a00000 0x002a0001
[2023-09-27T09:19:59] DEBUG1: hook: 0x70a00000 0x002a0001
[2023-09-27T09:19:59] DEBUG1: event: Key char=0, vk=0xa0, nagr=0, lParam=0x002a0001
[2023-09-27T09:19:59] DEBUG1: new mask: 0x2000
[2023-09-27T09:19:59] DEBUG1: new mask: 0x2001
[2023-09-27T09:19:59] DEBUG1: onKeyDown id=61409 mask=0x2001 button=0x002a
[2023-09-27T09:19:59] DEBUG1: send key down to "pad2-ic" id=61409, mask=0x2001, button=0x002a
[2023-09-27T09:20:00] DEBUG1: hook: 0x000000a0 0x002a0001
[2023-09-27T09:20:00] DEBUG1: hook: 0x60a00000 0x002a0001
[2023-09-27T09:20:00] DEBUG1: hook: 0x70a00000 0x002a0001
[2023-09-27T09:20:00] DEBUG1: event: Key char=0, vk=0xa0, nagr=0, lParam=0x002a0001
[2023-09-27T09:20:00] DEBUG1: new mask: 0x2001
[2023-09-27T09:20:00] DEBUG1: new mask: 0x2001
[2023-09-27T09:20:00] DEBUG1: hook: 0x000000a0 0x002a0001
[2023-09-27T09:20:00] DEBUG1: hook: 0x60a00000 0x002a0001
[2023-09-27T09:20:00] DEBUG1: hook: 0x70a00000 0x002a0001
[2023-09-27T09:20:00] DEBUG1: event: Key char=0, vk=0xa0, nagr=0, lParam=0x002a0001
[2023-09-27T09:20:00] DEBUG1: new mask: 0x2001
[2023-09-27T09:20:00] DEBUG1: new mask: 0x2001
[2023-09-27T09:20:00] DEBUG1: hook: 0x000000a0 0x002a0001
[2023-09-27T09:20:00] DEBUG1: hook: 0x60a00000 0x002a0001
[2023-09-27T09:20:00] DEBUG1: hook: 0x70a00000 0x002a0001
[2023-09-27T09:20:00] DEBUG1: event: Key char=0, vk=0xa0, nagr=0, lParam=0x002a0001
[2023-09-27T09:20:00] DEBUG1: new mask: 0x2001
[2023-09-27T09:20:00] DEBUG1: new mask: 0x2001
[2023-09-27T09:20:00] DEBUG1: hook: 0x000000bf 0x002b0001
[2023-09-27T09:20:00] DEBUG1: hook: 0x6fbf005e 0x002b0001
[2023-09-27T09:20:00] DEBUG1: hook: 0x000000bf 0x802b0001
[2023-09-27T09:20:00] DEBUG1: hook: 0x400000bf 0x802b0001
[2023-09-27T09:20:00] DEBUG1: hook: 0x000000bf 0x002b0001
[2023-09-27T09:20:00] DEBUG1: hook: 0x62bf005e 0x002b0001
[2023-09-27T09:20:00] DEBUG1: event: Key char=94, vk=0xbf, nagr=0, lParam=0x002b0001
[2023-09-27T09:20:00] DEBUG1: new mask: 0x2001
[2023-09-27T09:20:00] DEBUG1: new mask: 0x2001
[2023-09-27T09:20:00] DEBUG1: event: Key char=94, vk=0xbf, nagr=0, lParam=0x802b0001
[2023-09-27T09:20:00] DEBUG1: new mask: 0x2001
[2023-09-27T09:20:00] DEBUG1: new mask: 0x2001
[2023-09-27T09:20:00] DEBUG1: hook: 0x70bf005e 0x002b0001
[2023-09-27T09:20:00] DEBUG1: event: Key char=94, vk=0xbf, nagr=0, lParam=0x002b0001
[2023-09-27T09:20:00] DEBUG1: new mask: 0x2001
[2023-09-27T09:20:00] DEBUG1: new mask: 0x2001
[2023-09-27T09:20:00] DEBUG1: onKeyDown id=94 mask=0x2001 button=0x002b
[2023-09-27T09:20:00] DEBUG1: send key down to "pad2-ic" id=94, mask=0x2001, button=0x002b
[2023-09-27T09:20:00] DEBUG1: onKeyUp id=94 mask=0x2001 button=0x002b
[2023-09-27T09:20:00] DEBUG1: send key up to "pad2-ic" id=94, mask=0x2001, button=0x002b
[2023-09-27T09:20:00] DEBUG1: onKeyDown id=94 mask=0x2001 button=0x002b
[2023-09-27T09:20:00] DEBUG1: send key down to "pad2-ic" id=94, mask=0x2001, button=0x002b
[2023-09-27T09:20:00] DEBUG1: hook: 0x000000bf 0x802b0001
[2023-09-27T09:20:00] DEBUG1: hook: 0x62bf005e 0x802b0001
[2023-09-27T09:20:00] DEBUG1: event: Key char=94, vk=0x00, nagr=0, lParam=0x00000000
[2023-09-27T09:20:00] DEBUG1: event: Key char=94, vk=0x00, nagr=0, lParam=0x80000000
[2023-09-27T09:20:00] DEBUG1: hook: 0x70bf005e 0x802b0001
[2023-09-27T09:20:00] DEBUG1: event: Key char=94, vk=0xbf, nagr=0, lParam=0x802b0001
[2023-09-27T09:20:00] DEBUG1: new mask: 0x2001
[2023-09-27T09:20:00] DEBUG1: new mask: 0x2001
[2023-09-27T09:20:00] DEBUG1: onKeyUp id=94 mask=0x2001 button=0x002b
[2023-09-27T09:20:00] DEBUG1: send key up to "pad2-ic" id=94, mask=0x2001, button=0x002b
[2023-09-27T09:20:01] DEBUG1: hook: 0x000000a0 0x802a0001
[2023-09-27T09:20:01] DEBUG1: hook: 0x60a00000 0x802a0001
[2023-09-27T09:20:01] DEBUG1: hook: 0x70a00000 0x802a0001
[2023-09-27T09:20:01] DEBUG1: event: Key char=0, vk=0xa0, nagr=0, lParam=0x802a0001
[2023-09-27T09:20:01] DEBUG1: new mask: 0x2001
[2023-09-27T09:20:01] DEBUG1: new mask: 0x2000
[2023-09-27T09:20:01] DEBUG1: onKeyUp id=61409 mask=0x2000 button=0x002a
[2023-09-27T09:20:01] DEBUG1: send key up to "pad2-ic" id=61409, mask=0x2000, button=0x002a

Any other information

  1. Actions logged: pressed twice "enter", pressed twice "~", pressed twice SHIFT+"~"

  2. Result in the client:


~~
  1. This is the information for this keyboard on scan code "1b" as given by Microsoft Keyboard Layout Creator (MSKLC) Version 1.4:

image

(after choosing File->Load Existing Keyboard...->Portuguese)

  1. This is related to Fix Broken Tilde and Grave (Backtick/Backquote) (regression bugfix) #1711 Tilde and grave don't work on linux client with macOS server #1531 macOS 2.4.0 backtick(`) key mapping and trackpad double tap error on Ubuntu #1407 the key "`" (on the left of key 1) not work #1837

  2. Workaround Some keyboard strokes are not working properly #532 (comment) does not seem to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant