-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Umlauts don't work #431
Comments
Thank you for your report. Could you test with the old v1.3, please? I know about this problem, it is a consequence of the "compromise" to fix input in games (411aa4f). When I merged it, I didn't think about this side-effect. I plan to add an option to configure how raw inputs are handled (several modes have both upsides and downsides). |
Same thing 🤔 |
OK, so this is the other possible cause: your keyboard does not handle key composition correctly (IIRC, this is the case for the Google keyboard). I have no solution for this problem unfortunately (this key composition is already a poor solution to workaround Android limitations for injecting non-ASCII characters). |
How about adding support for handling input using Linux uinput feature ? It handles raw keycodes like phone has connected an external keyboard. However I don't know about umlauts or other non-ASCII characters, maybe I'll check it later. The disadvantage is that it requires ioctl() handling what invokes need of root access. Sample code I've tested (from my abandoned project): https://github.com/tomekdev/android-live-control/blob/master/server/uinput.cpp |
Yes, that's a problem. Also see: #279 |
On StackOverflow I've found something like this: https://stackoverflow.com/questions/14224549/adb-shell-input-unicode-character |
In the comments: https://github.com/senzhk/ADBKeyBoard |
After testing, I can confirm that The other question is how to integrate Maybe we can simply send broadcast to |
Thank you for your test 👍 This method requires to install an app on the device (and enable the keyboard in settings). So if we integrate such a thing, I think it needs to be optional (explicitly requested on the command line). |
Yes! There is a simple proposal, create a |
Always consider either the app, the phone or scrcpy crashing. How would that be reset then? |
Cool, thank you for the PoC! 👍 |
Hi, all There are 3 options for integrating
My concern is about implementing such things in Before doing something, I'd like to hear your opinion on it. |
In my opinion, being able to type whatever character is needed in the user's language of choice should be considered part of Otherwise this issue renders I really hope that everyone can agree on this with me. |
@npes87184 I'm not sure the keyboard should use a socket. IMO it could be controlled via intents/binder from the scrcpy server (the client would just send text events, and the server would send intents to the keyboard). What do you think? |
The code may more clear in this way. However, we may suffer some delay when user types, I think. |
This seems to work for (German) umlauts now (I'm on v1.11), but not alt keys (like there is |
@metaa With what parameters do umlauts work for you ? I (currently on v.1.14) do not get them to work. |
No parameters at all. |
Thats interesting. What characters can you use, for example ? The ones I'm missing mostly are ä ö ü. They only exist on german-layouted keyboards, but writing without them is horrible. |
I wonder if that has anything to do with what keyboard is used. Because in my case when I press any of them, nothing is sendt to the device. I use Hackers Keyboard (https://f-droid.org/en/packages/org.pocketworkstation.pckeyboard/) on Android 9. |
Yes, it can depend on the device keyboard (but it should work with the keyboards you tested). Did you test with |
Yes, I did. was the first thing I tried after reading through this thread. Sadly it didn't work with that option either. Is there anything else I can provide to find out why it does not work for me ? |
I'm using ubuntu and can't get the umlauts to work ( v. 1.16 ). |
I can narrow it (or at least my specific umlaut-problem) down to using the snap-version. Using the regularly (via apt) installed package as well as the self-compiled (https://github.com/Genymobile/scrcpy/blob/master/BUILD.md) binary umlauts are working as expected. I don't even need to enable --prefer-text. @mrbgfromv Maybe your problem has the same cause ? Thanks to @rom1v & @metaa for trying to figure this out with me. |
@PureIncompetence THANK YOU very much, I can confirm umlauts working under ubuntu using the package provided via apt. |
I confirm, that with snap Umlauts don't work with the apt package it works. THANKS a LOT. I was looking for a solution for many month already. |
Any chance you could have a look at how to get German umlauts working with the snap package version as it still does not work? I need the snap version because the version provided in apt (Ubuntu 20.04) is too old. Interesting: copy/paste a text with German umlauts work fine, just not when typing them. Thanks! |
@heurekus You can manually install the latest version easily: https://github.com/Genymobile/scrcpy/blob/master/BUILD.md#simple |
I can confirm that the repository version on Ubuntu 20.04 (v 1.12) works for german Umlaute. |
@ManFarang There is no change regarding this between 1.12 and the latest version (1.24). It appears to be an issue with the snap package. You can install the latest version manually: https://github.com/Genymobile/scrcpy/blob/master/BUILD.md#simple |
Removed the SNAP version (was a bit tricky because SNAP was very sticky. Rebooting was necessary). |
Same here: On my Lubuntu 20.04 scrcpy 1.12 could not handle screen resolution, so I installed a snap to get the latest stable edition. But without any umlauts! The installation oft the latest version via the git repo as suggested by @rom1v did the trick. Thank you all! I did not find out how to contact the snap packager, someone should tell him... |
Hey there, it seems that keyboard input doesn't quite work with umlauts. Every time I try to enter one, it inserts the base character and then adds the character for the dots after it and then weirdly selects and sometimes deletes it, but sometimes ... it doesn't ... I don't know.
Just watch this gif:
Is that something wrong on my side or is that
scrcpy
's fault?My PC and phone both use the same language.
The text was updated successfully, but these errors were encountered: