[GH-ISSUE #1737] Hotkey listening not accepting my hotkey #1282

Closed
opened 2026-05-05 07:41:39 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @Queuecumber on GitHub (Aug 5, 2022).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1737

What happened?

I have a keyboard with a few extra keys on it, I've bound these to some of the "high" F keys.

I'd like to use F14 as a hotkey in the barrier server but it isn't accepting the keystroke when I try to create a new hotkey. I'm going to poke around the source code but I'm curious if you know what might be going wrong here and if you can recommend a fix for it. F12 worked fine.

showkey -k reports this key as keycode 184

xev reports it as

KeyRelease event, serial 37, synthetic NO, window 0x4a00001,
    root 0x7de, subw 0x4a00002, time 1083094719, (41,52), root:(3034,1025),
    state 0x10, keycode 192 (keysym 0x1008ff45, XF86Launch5), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

Version

v2.4.0

Git commit hash (if applicable)

No response

If applicable, where did you install Barrier from?

No response

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

Linux

What OS versions are you using?

Arch linux server

Relevant log output

No response

Any other information

No response

Originally created by @Queuecumber on GitHub (Aug 5, 2022). Original GitHub issue: https://github.com/debauchee/barrier/issues/1737 ### What happened? I have a keyboard with a few extra keys on it, I've bound these to some of the "high" F keys. I'd like to use F14 as a hotkey in the barrier server but it isn't accepting the keystroke when I try to create a new hotkey. I'm going to poke around the source code but I'm curious if you know what might be going wrong here and if you can recommend a fix for it. F12 worked fine. `showkey -k` reports this key as keycode 184 `xev` reports it as ``` KeyRelease event, serial 37, synthetic NO, window 0x4a00001, root 0x7de, subw 0x4a00002, time 1083094719, (41,52), root:(3034,1025), state 0x10, keycode 192 (keysym 0x1008ff45, XF86Launch5), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False ``` ### Version v2.4.0 ### Git commit hash (if applicable) _No response_ ### If applicable, where did you install Barrier from? _No response_ ### What OSes are you seeing the problem on? (Check all that apply) Linux ### What OS versions are you using? Arch linux server ### Relevant log output _No response_ ### Any other information _No response_
Author
Owner

@Queuecumber commented on GitHub (Aug 5, 2022):

Found some relevant code here:

https://github.com/debauchee/barrier/blob/master/src/gui/src/KeySequence.cpp#L228

Seems to me like it should be working

<!-- gh-comment-id:1206870307 --> @Queuecumber commented on GitHub (Aug 5, 2022): Found some relevant code here: https://github.com/debauchee/barrier/blob/master/src/gui/src/KeySequence.cpp#L228 Seems to me like it should be working
Author
Owner

@Queuecumber commented on GitHub (Aug 5, 2022):

Found the answer here, sorry for the noise

https://github.com/debauchee/barrier/issues/197

<!-- gh-comment-id:1206875499 --> @Queuecumber commented on GitHub (Aug 5, 2022): Found the answer here, sorry for the noise https://github.com/debauchee/barrier/issues/197
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#1282
No description provided.