debauchee / barrier

Open-source KVM software
Other
27.58k stars 1.51k forks source link

Hotkeys do nothing #595

Open jdobelmann opened 4 years ago

jdobelmann commented 4 years ago

Operating Systems

Server: Arch Linux, Awesome WM Client: Windows 10 Education

Barrier Version

2.3.2

Steps to reproduce bug

  1. Click on "Configure Server"
  2. Attempt to create a hotkey (I tried to assign "Ctrl+Meta+Shift+Backspace" to "lockCursorToScreen", for example)
  3. Reload configuration

Other info

Barrier will allow me to create a hotkey, but when I press the hotkey, nothing happens. I also have other hotkeys for switching between displays, but those do nothing, as well. This issue occurs both when I configure the server interactively and when I try to use a configuration file. When I use my Windows 10 PC as the server, these hotkeys all work as intended. Pressing a hotkey does not add any information to the log.

My configuration file:

section: screens
    Arch:
        halfDuplexCapsLock = false
        halfDuplexNumLock = false
        halfDuplexScrollLock = false
        xtestIsXineramaUnaware = false
        preserveFocus = true
        switchCorners = none 
        switchCornerSize = 0
    Win10:
        halfDuplexCapsLock = false
        halfDuplexNumLock = false
        halfDuplexScrollLock = false
        xtestIsXineramaUnaware = false
        preserveFocus = false
        switchCorners = none 
        switchCornerSize = 0
end

section: aliases
end

section: links
    Arch:
        right = Win10
    Win10:
        left = Arch
end

section: options
    relativeMouseMoves = true
    screenSaverSync = true
    win32KeepForeground = false
    clipboardSharing = true
    switchCorners = none 
    switchCornerSize = 0
    keystroke(Control+Shift+Meta+BackSpace) = lockCursorToScreen(toggle)
    keystroke(Shift+Control+Meta+Right) = switchInDirection(right)
    keystroke(Shift+Control+Meta+Up) = switchInDirection(up)
    keystroke(Shift+Control+Meta+Down) = switchInDirection(down)
    keystroke(Shift+Control+Meta+Left) = switchInDirection(left)
end
ghost commented 4 years ago

I can confirm this behavior on current Debian 10 package version if the Meta-Key is in the keystroke. If Meta it is not in the keystroke, it works.

jdobelmann commented 4 years ago

I edited the keystroke to not use the Meta key, and can confirm that it works now. Thanks for the suggestion.

sgon00 commented 3 years ago

I am meetinng the same issue today. I am using debian 10 package too. Is this resolved in the latest version? If not, the bug should keep opened. Cheers.

shymega commented 3 years ago

Reopening, for now, if you can test the latest Barrier on Debian, that'd be useful to gauge.

martinbogo commented 3 years ago

Tested in Debian 10 and Debian 11 -- both fail. I'm afraid the Meta keystroke is still intercepted and not recognized.

hagare commented 3 years ago

I have a Mac and was having the same issue with hotkeys doing nothing. Did not work with Meta or Alt. I ended up using Page Up and Page Down to switch between displays, and that worked perfectly. Moral of the story choose your hotkeys wisely.

metala commented 1 year ago

I've noticed that in interactive mode if you hold Ctrl+Shit+Alt it shows as "Ctrl+Shift+Meta". This may be a hint.

Edit. X maps Alt+Shift to Meta. If you don't want the Alt to get shifted to Meta, then you can run xmodmap -e "keycode 64 = Alt_L" It fixes the issue.