Modifier keys not "fully" forwarded (not detected by Keymapper)?
Environment
- OS: Ubuntu,
- scrcpy version: 1.24,
- installation method: snap,
- Android version: 13
Decription
Hi, To have some accent characters available I though I could use Keymapper to detect specific key combinations. Unfortunately the key combinations are not detected by it while using scrcpy.
I've found this pull request so I assume Shift and Ctrl should be forwarded. Is it some other way of passing it which is undetectable by Keymapper? Or maybe that's because it only works when a text field is active?
I tried using --prefer-text and --raw-key-events and even doing it while having a real keyboard connect by USB to see if it may be required by Keymapper to detect such combinations.
And, by the way, thank You very much for the application! I appreciate Your work!
Pressing alpha keys generate text events by default. You could try to send raw key events instead (scrcpy --raw-key-events), but depending on your keyboard layout you could get unexpected results.
More info: https://blog.rom1v.com/2018/03/introducing-scrcpy/#handle-text-input
You could also try HID mode over USB (scrcpy -K).
Thank You for the answer and suggestions. I tried --raw-key-events before, but I tried again and it doesn't seem to change anything really. Do You know a way to check that it works as expected for my setup?
I'd gladly use HID mode I think, but I connect to my device remotely so that will not work I believe.
For now I use KDE Connect keyboard, but I may try using ADBKeyboard option introduced in this pull request: https://github.com/Genymobile/scrcpy/pull/1751.