input-leap / input-leap

Open-source KVM software
Other
4.46k stars 192 forks source link

Keypress hotkey does not trigger on the server screen #1058

Open ghost opened 3 years ago

ghost commented 3 years ago

This issue has been migrated from old Barrier Github repository https://github.com/debauchee/barrier/issues/1058

Issue created on: 2021-02-08 by @Azzurite Issue last updated on: 2021-03-08

Describe the bug

If you create a "key press" hotkey, for example when 1 is pressed, then press 2, and select the server screen as "Only on these screens", I would expect that when I press 1, that the server screen receives a 2. However, this only seems to work on client screens.

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Server Configuration' -> Hotkeys
  2. Create a new hotkey with key 1
  3. Add an action to this hotkey
    • Select 'Press and release a hotkey`
    • Set the keystroke to 2
  4. Switch on 'Only on these screens`
  5. Select the server screen
  6. Restart barrier
  7. Press 1
  8. No 2 is pressed on the selected screen

Expected behavior

I would expect that when I press 1, the hotkey triggers and sends the keypress 2 to the server screen.

I would also expect that when I create a hotkey 1 that then also presses 1, that that also works on the server screen, i.e. the hotkey is visible to the OS instead of getting blocked.

Desktop (please complete the following information):


Commented on: 2021-03-08 by @sblatnick

I think I am seeing the same behavior.

Server: 2.3.3-release-12024b9a on Debian, built myself from the master branch to get Sun keyboard support. Client: 2.3.3-release-6f45a8ac on MacOS Catalina

I set up a hotkey to map the Sun keyboard's Help key to press F1, and it only sends the keypress to the client machine, not the server.

I would expect the button to be pressed on both boxes, but I also wouldn't mind if the keypress were dependent on the machine with the focus. Alternatively, if I could get the Sun keys to be passed to MacOS without using hotkeys at all, I could accomplish the same thing using karabiner.

The situation this presents is either I can use the Help key on my server/linux box natively (no hotkey defined), or I can use it on my client/mac, but there is no way I know of to have the key work on both boxes. In other words, if I specify the hotkey, neither Help nor F1 keypress invokes the desired UI interaction in Compiz Fusion running on the server/debian box. However, if I open Compiz Config, and grab a keypress, it will assign the Help key as a shortcut/keybinding.

I've tried various settings of "only on these screens" to no avail. Does this setting mean to trigger the hotkey only when that screen is focused, or only to send the hotkey to those screens? It seems to be the latter.

How are hotkeys supposed to work? Send the key to all applicable screens, or just the focused one? Could we add an option if there isn't one to determine which of these behaviors to use?

Earthling-Z3R0 commented 1 year ago

I have the same issue. Pressing a hotkey on the server will broadcast it to the client and press the appropriate keys configured but no visual keypress happens on the server.

Example: Press "2" on server and broadcast it to clients (which are configured to press "2" as well) results in the clients showing "2" (as expected). But on the the server "2" is not printed. The hotkey "2" on the server basically become unavailbe as a normal key. It will only live to check if it's pressed and do the broadcast and nothing else.

khoint0210 commented 1 year ago

Any update on this

shymega commented 1 year ago

Hi,

Please avoid bumping the issue when unnecessary.

If you also experience the issue, kindly react to the issue with :+1:, or if you want to find out when the issue will be resolved, please do not bump the issue, but instead subscribe to the issue using the button on the right-hand side.