-
-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement symbol, alpha, numeric, arrow keyboard event handling #102
Conversation
Interesting approach @zeheater - can you tell us why the PR got closed / what did not work? |
After further testing, i encountered some null pointer exception, and discover some issues in the binding logic where it fail to update the remote buffer when typing using the soft keyboard. So, i closed the PR. I will open another PR after i fix these issues. |
Thanks for the explanation. Can you also elaborate on the pros and cons of this approach versus a 'proper' IME? |
Accessibility approach:
Custom Keyboard approach:
|
How does this approach deal with input to arbitrary widgets? Like game surfaces and the like? I think I saw a reference to edittext in the PR...
Not sure about that. Please have a look at alphavnc, they do the IME approach and there's no custom keyboard to install. |
For my implementation right now, i only care about edittext for basic send keystrokes. That is sufficient for my use case.
Oh... i didn't know about alphavnc, i will look into it. |
@bk138, i have checked alpha vnc. They do have IME approach |
I think you can request their source code as they're GPL as well in order to have an in-depth look. |
Btw, i have updated my branch. I think it's a "good enough" implementation for my case. The code quality is still far from ideal. I still haven't tried it on gaming yet, but it should be no issue as long as it is editable field. There are some issues with some other widget, such as Spinner which i fix by hardcoding "EditText" class name. You're welcome to check and review. But i think this is it for now. |
Thanks, I'll have a look, time permitting. Might take a while though, €€€-work to do. |
No worries... take your time. |
I have android 12. droidvnc-ng is shown as downloaded app in accessibility menu, but I have no keyboard via my vnc client. (remmina) Also suggestion is to enable "discussion" for this repo so we can ask support type questions outside of the issue tracker. |
@dkebler for question outside the issue tracker, there is https://app.gitter.im/#/room/#droidVNC-NG_community:gitter.im as outline here: https://github.com/bk138/droidVNC-NG#readme :-) |
This pull request attempt to address #4.
It worked without implementing custom soft keyboard by leveraging Android Accessibility API.
Please review and comment.