[GH-ISSUE #1165] [Feature Request] Support for some multimedia keys (Calculator & Browser keys) #936

Open
opened 2026-05-05 07:18:07 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @diegovgsilva95 on GitHub (May 17, 2021).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1165

My setup consists on two laptops, both running Arch Linux. My keyboard (C3Tech K-W40BK) has support for 10 multimedia keys. Everything works, except for calculator key and browser key.

For example, the log contains the following when I press Calculator key while controlling the other laptop:

[2021-05-17T06:50:41] DEBUG2: mapped code=148 to keysym=0x1008ff1d
[2021-05-17T06:50:41] DEBUG2: mapped keysym=0x1008ff1d to keyID=0
[2021-05-17T06:50:41] DEBUG1: can't map keycode to key id

Analysing the source code, the keycode 148 (keysym 0x1008ff1d, named as XF86Calculator by xev) would map to s_map1008FF[0x1D] and the keycode 152 (keysym 0x1008ff5d, named as XF86Explorer by xev) would map to s_map1008FF[0x5D].

The forementioned array does not contain the correct mapping, as these positions are zeroed.

fc045fc793/src/lib/platform/XWindowsUtil.cpp (L1257) should be something like:
/* 0x18 */ kKeyWWWHome, kKeyAppMail, 0, kKeyWWWSearch, 0, kKeyAppCalculator, 0, 0,

fc045fc793/src/lib/platform/XWindowsUtil.cpp (L1265) as well should be:
/* 0x58 */ 0, 0, 0, 0, 0, kKeyAppBrowser, 0, 0,

If it's possible and, of course, compatible between all the supported OSes, could it be implemented?

Thanks in advance!

Originally created by @diegovgsilva95 on GitHub (May 17, 2021). Original GitHub issue: https://github.com/debauchee/barrier/issues/1165 My setup consists on two laptops, both running Arch Linux. My keyboard (C3Tech K-W40BK) has support for 10 multimedia keys. Everything works, except for **calculator key** and **browser key**. For example, the log contains the following when I press Calculator key while controlling the other laptop: ``` [2021-05-17T06:50:41] DEBUG2: mapped code=148 to keysym=0x1008ff1d [2021-05-17T06:50:41] DEBUG2: mapped keysym=0x1008ff1d to keyID=0 [2021-05-17T06:50:41] DEBUG1: can't map keycode to key id ``` Analysing the source code, the **keycode 148** (keysym `0x1008ff1d`, named as `XF86Calculator` by `xev`) would map to `s_map1008FF[0x1D]` and the **keycode 152** (keysym `0x1008ff5d`, named as `XF86Explorer` by `xev`) would map to `s_map1008FF[0x5D]`. The forementioned array does not contain the correct mapping, as these positions are zeroed. https://github.com/debauchee/barrier/blob/fc045fc79326cef966405b1cc578e8f062ae5294/src/lib/platform/XWindowsUtil.cpp#L1257 should be something like: ` /* 0x18 */ kKeyWWWHome, kKeyAppMail, 0, kKeyWWWSearch, 0, kKeyAppCalculator, 0, 0,` https://github.com/debauchee/barrier/blob/fc045fc79326cef966405b1cc578e8f062ae5294/src/lib/platform/XWindowsUtil.cpp#L1265 as well should be: ` /* 0x58 */ 0, 0, 0, 0, 0, kKeyAppBrowser, 0, 0,` If it's possible and, of course, compatible between all the supported OSes, could it be implemented? Thanks in advance!
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#936
No description provided.