scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

Enter on Numpad

Open mischlrebl opened this issue 3 years ago • 4 comments

Enter on Numpad - bottom right - does not work (while Enter on typewriter keys does)

is there any option to activate it, did not found anything, or could it be added in the sources?

thanks in advance

mischlrebl avatar Nov 22 '22 14:11 mischlrebl

Numpad enter is correctly forwarded to the device. To confirm, run scrcpy -Vverbose, so that whenever you press a key, it logs it in the console.

However, it seems that some apps do not react to numpad enter. You can even simulate this keycode with:

adb shell input keyevent KEYCODE_NUMPAD_ENTER

https://github.com/Genymobile/scrcpy/issues/117#issuecomment-498031141

rom1v avatar Nov 22 '22 15:11 rom1v

just want to come back shortly to that.

it is visible in the console that the key strokes are received correctly: image-2024-02-28-13-39-30-653

we found out, that multiline entry text fields process the numpad enter correctly.

instead of changing all fields, is it known if there is a global handler available to solve the issue? we are working with an app built in xamarin.

thanks for any support

mischlrebl avatar Mar 19 '24 08:03 mischlrebl

how to bring this ticket up again?

mischlrebl avatar Apr 24 '24 08:04 mischlrebl

A prior, the numpad enter is correctly forwarded. It is just not handled by Android (at least on your device) the way you expect.

Does it work better with UHID keyboard? (scrcpy -K) See https://github.com/Genymobile/scrcpy/blob/master/doc/keyboard.md#physical-keyboard-simulation

rom1v avatar Apr 24 '24 08:04 rom1v