mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #1230] Dead key using MacOS keyboard Swiss German layout #992
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#992
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sgrienen on GitHub (Jul 16, 2021).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1230
Describe the bug
¨ and Shift+¨ (should be !) doesn't work well on Swiss German keyboard from MacOS Big Sur acting as server to Windows 10 20H2 acting as client.
To Reproduce
Steps to reproduce the behavior:
Here's the log on both ends :
Client
[2021-07-16T10:46:47] DEBUG1: recv key down id=0x000000a8, mask=0x0000, button=0x001f
[2021-07-16T10:46:47] DEBUG1: mapKey 00a8 (168) with mask 0000, start state: 2000
[2021-07-16T10:46:47] DEBUG1: find best: 2000 0000
[2021-07-16T10:46:47] DEBUG1: best key index 1 of 1 (exact)
[2021-07-16T10:46:47] DEBUG1: found key in group 0
[2021-07-16T10:46:47] DEBUG1: flip: 0000 (2000 vs 0000 in 0007 - 0000)
[2021-07-16T10:46:47] DEBUG1: state: 2000,0000,0006
[2021-07-16T10:46:47] DEBUG1: flip: 0000 (2000 vs 0000 in 0006 - 0000)
[2021-07-16T10:46:47] DEBUG1: desired state: 0000 2000,0000,0006
[2021-07-16T10:46:47] DEBUG1: flip: 0000 (2000 vs 0000 in fff9 - 6020)
[2021-07-16T10:46:47] DEBUG1: mapped to 039, new state 2000
[2021-07-16T10:46:47] DEBUG1: keystrokes:
[2021-07-16T10:46:47] DEBUG1: 01b (000000c0) down
[2021-07-16T10:46:47] DEBUG1: 01b (000000c0) up
[2021-07-16T10:46:47] DEBUG1: 039 (00000020) down
[2021-07-16T10:46:47] DEBUG1: recv key up id=0x00000000, mask=0x0000, button=0x001f
[2021-07-16T10:46:47] DEBUG1: keystrokes:
[2021-07-16T10:46:47] DEBUG1: 039 (00000020) up
Server
[2021-07-16T10:48:16] DEBUG1: event: Key event kind: 10, keycode=30
[2021-07-16T10:48:16] DEBUG1: new mask: 0x0000
[2021-07-16T10:48:16] DEBUG1: onKeyDown id=168 mask=0x0000 button=0x001f
[2021-07-16T10:48:16] DEBUG1: send key down to "PC" id=168, mask=0x0000, button=0x001f
[2021-07-16T10:48:16] DEBUG1: event: Key event kind: 11, keycode=30
[2021-07-16T10:48:16] DEBUG1: new mask: 0x0000
[2021-07-16T10:48:16] DEBUG1: onKeyUp id=0 mask=0x0000 button=0x001f
[2021-07-16T10:48:16] DEBUG1: send key up to "PC" id=0, mask=0x0000, button=0x001f
Using this : https://w3c.github.io/uievents/tools/key-event-viewer.html it says it's a dead key ? See screenshot attached.
Expected behavior
¨ should come at first key press and ! when pressing with Shift, that last one simply never comes.
Screenshots

If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Server
Client
Additional context
Add any other context about the problem here.
@sgrienen commented on GitHub (Nov 15, 2021):
I've recently updated to 2.4.0 and now I've also lost the > and < key (on a Swiss layout keyboard it's located right to the left Shift). The key is working perfectly on my Mac, but moving over to the PC via Barrier, it's simply doing nothing. MacOS is not Monterey (12.0.1) and PC Is still running 20H2. Here some logs to show what happens
Server log:
[...] Focus on Mac
[2021-11-15T10:37:21] DEBUG1: event: Key event kind: 10, keycode=50
[2021-11-15T10:37:21] DEBUG1: new mask: 0x0000
[2021-11-15T10:37:21] DEBUG1: onKeyDown id=61226 mask=0x0000 button=0x0033
[2021-11-15T10:37:21] DEBUG1: event: Key event kind: 11, keycode=50
[2021-11-15T10:37:21] DEBUG1: new mask: 0x0000
[2021-11-15T10:37:21] DEBUG1: onKeyUp id=0 mask=0x0000 button=0x0033
[...] Moved mouse cursor to PC
[2021-11-15T10:37:24] DEBUG1: event: Key event kind: 10, keycode=50
[2021-11-15T10:37:24] DEBUG1: new mask: 0x0000
[2021-11-15T10:37:24] DEBUG1: onKeyDown id=61226 mask=0x0000 button=0x0033
[2021-11-15T10:37:24] DEBUG1: send key down to "PC" id=61226, mask=0x0000, button=0x0033
[2021-11-15T10:37:24] DEBUG1: event: Key event kind: 11, keycode=50
[2021-11-15T10:37:24] DEBUG1: new mask: 0x0000
[2021-11-15T10:37:24] DEBUG1: onKeyUp id=0 mask=0x0000 button=0x0033
[2021-11-15T10:37:24] DEBUG1: send key up to "PC" id=0, mask=0x0000, button=0x0033
Client log:
[2021-11-15T10:34:47] DEBUG1: keystrokes:
[2021-11-15T10:34:47] DEBUG1: 05f (000000f3) down
[2021-11-15T10:34:48] DEBUG1: recv key up id=0x00000000, mask=0x0000, button=0x0033
[2021-11-15T10:34:48] DEBUG1: keystrokes:
[2021-11-15T10:34:48] DEBUG1: 05f (000000f3) up