Repeating left click on long press - #343
Conversation
|
Can you please give some details about the use case here? Because, IMHO, this looks like a macro that's useful only in a specific app/game. AVNC doesn't feel like the best place for it (maybe something like XClicker would be more usefull?) |
|
The use case is to input several letters on a long press on a virtual keyboard. But now that you mention it, maybe AVNC should just trigger a long click (there is already an option for this) and let the virtual keyboard decide what to do then. I’m checking with my team about whether we can have our virtual keyboard handle long clicks properly. |
|
Yes, the Handling key-repeat on server-side will also ensure that it works with any VNC client. |
|
Okay, my latest tests shows we have the desired behavior with the |
This PR adds an option to the long press gesture action that turns long presses into repeated clicks.
I wasn’t able to create a unit test for it. I tried, but it seems
View#postDelayed(Long, () -> Unit)is ignored during unit tests. On my device, this worked very well when tested manually along with commit 5b4f142.