[GH-ISSUE #1978] Shift-Accented keys are incorrectly sent to client #1449

Open
opened 2026-05-05 07:50:59 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @gvlx on GitHub (Sep 27, 2023).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1978

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)

3e0d758b

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 #1711 #1531 #1407 #1837

  2. Workaround https://github.com/debauchee/barrier/issues/532#issuecomment-1082995265 does not seem to work

Originally created by @gvlx on GitHub (Sep 27, 2023). Original GitHub issue: https://github.com/debauchee/barrier/issues/1978 ### What happened? In the portuguese pt_PT keyboard the following characters: - Grave Accent / \&DiacriticalGrave\; / U+0060 “`” : https://www.compart.com/en/unicode/U+0060 - Circumflex Accent / \&Hat\; / U+005E “^” : https://www.compart.com/en/unicode/U+005E Are accessed by pressing SHIFT + the following characters, respectively: - Acute Accent / \&DiacriticalAcute\; / U+00B4 “´” https://www.compart.com/en/unicode/U+00B4 - Tilde / (no HTML entity) / U+007E “~” : https://www.compart.com/en/unicode/U+007E ### Version v2.4.0 ### Git commit hash (if applicable) 3e0d758b ### 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 ```shell [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+"~"` 3. Result in the client: ``` ~~ ``` 3. This is the information for this keyboard on scan code "1b" as given by [Microsoft Keyboard Layout Creator (MSKLC) Version 1.4](https://www.microsoft.com/en-us/download/details.aspx?id=102134): ![image](https://github.com/debauchee/barrier/assets/67311/acdf2655-f8cc-447a-8539-1c459b375c1e) (after choosing `File->Load Existing Keyboard...->Portuguese`) 4. This is related to #1711 #1531 #1407 #1837 5. Workaround https://github.com/debauchee/barrier/issues/532#issuecomment-1082995265 does not seem to work
Author
Owner

@thiagosgarcia commented on GitHub (Jan 15, 2025):

Also getting it on Windows 11 => Ubuntu 24.04.1
Whenever typing accents, if I do it very slowly, it doesn't seem to fail. Sounds like the faster you type the more it breaks.

Sample - Typing mutação with muta + ç + ~ + a + o
typing in my normal speed: mutaç~ãõ
A little slower: mutaç~ão
typing with an approx. 50-100ms interval between key strokes: mutação

<!-- gh-comment-id:2593874693 --> @thiagosgarcia commented on GitHub (Jan 15, 2025): Also getting it on Windows 11 => Ubuntu 24.04.1 Whenever typing accents, if I do it **very slowly**, it doesn't seem to fail. Sounds like the faster you type the more it breaks. Sample - Typing `mutação` with `muta` + `ç` + `~` + `a` + `o` typing in my normal speed: `mutaç~ãõ` A little slower: `mutaç~ão` typing with an approx. 50-100ms interval between key strokes: `mutação`
Author
Owner

@nbolton commented on GitHub (Jan 16, 2025):

@thiagosgarcia Please try Deskflow or Input Leap as Barrier is no longer in development.

https://github.com/deskflow/deskflow
https://github.com/input-leap/input-leap

If this is still an issue in those projects, we would appreciate a cross-post of this issue.

<!-- gh-comment-id:2595530068 --> @nbolton commented on GitHub (Jan 16, 2025): @thiagosgarcia Please try Deskflow or Input Leap as Barrier is no longer in development. https://github.com/deskflow/deskflow https://github.com/input-leap/input-leap If this is still an issue in those projects, we would appreciate a cross-post of this issue.
Author
Owner

@thiagosgarcia commented on GitHub (Jan 16, 2025):

For future reference, deskflow as server and client does solve the issue.
When I was reconfiguring I did try deskflow as the server and barrier as the client, the issue was still there. After moving the client to deskflow it was back to normal, plus, I was able to re-enable wayland (since barrier is only compatible to x11)

Thanks @nbolton !

<!-- gh-comment-id:2596032039 --> @thiagosgarcia commented on GitHub (Jan 16, 2025): For future reference, deskflow as server and client does solve the issue. When I was reconfiguring I did try deskflow as the server and barrier as the client, the issue was still there. After moving the client to deskflow it was back to normal, plus, I was able to re-enable wayland (since barrier is only compatible to x11) Thanks @nbolton !
Author
Owner

@nbolton commented on GitHub (Jan 16, 2025):

@gvlx Perhaps you could close this as fixed in Deskflow?

<!-- gh-comment-id:2596261072 --> @nbolton commented on GitHub (Jan 16, 2025): @gvlx Perhaps you could close this as fixed in Deskflow?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#1449
No description provided.