pi400kb icon indicating copy to clipboard operation
pi400kb copied to clipboard

Modify the key to grab/release keyboard and mouse from the host

Open Shuya4 opened this issue 3 years ago • 2 comments

Just wonder if there is a possibility to change the grab/release shortcut Ctrl + Raspberry to other keys.

Shuya4 avatar Feb 12 '22 15:02 Shuya4

The code to handle the shortcut is very, very crude- right now is checks the bitmasked function keys for a particular value:

https://github.com/Gadgetoid/pi400kb/blob/fd8bb808d282ffb5feed682d459902b0484104a6/pi400.c#L225-L238

It's also hard-coded and not very flexible.

What sort of combo where you thinking of?

Gadgetoid avatar Feb 13 '22 10:02 Gadgetoid

This fork might be easier to modify, the shortcut keys aren't hard-coded. You can see the full list of available keycodes here.

DeeNewcum avatar Feb 13 '22 19:02 DeeNewcum