-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
Non english keyboard layout #37
Comments
Probably not. Only ASCII and some accented characters work. Except if someone finds a technical solution ;) |
I used to have the same issue but it disappeared through some "practice":
|
One possible technical solution is to write a customized input method manager. Vysor(an scrcpy alternative) does this. |
+1 on this. Wanted to write in Hebrew too, but failed. |
@rom1v One of the possible options could be to create a custom keyboard, like |
I would prefer without this workaround... |
I strongly hope this will be fixed soon |
https://remoboard.app/ |
@livin2 This means I have to change my default keyboard, which means I might have less features than what I want to have. Is there maybe a way to do it using "monkeyrunner "? Someone wrote about this here: |
feature like emoji mostly depend on the ime of computer.
|
Yes, still a hassle. Once I disconnect from USB, I have to switch back to the keyboard I use. |
Refer to the Vysor method, add a custom ime to enter unicode characters |
i solved it by using an alternative keyboard for android. specifically, i am using anysoftkeyboard. just be sure that your host operating system keyboard is set to the same language. |
recommend Gboard: |
Swedish letter å (u+00e5) still dont work.
|
When I execute the program with the For example, after clicking on |
android手机上安装qq输入法,可以在windows下正常输入中文。 Installing QQ input method on Android phones allows for normal Chinese input under Windows. |
It does work with AnySoftKeyboard, once you install your chosen language pack for it on an Android phone. However, some of your language characters assigned to special character buttons of the physical PC keyboard may not print in the phone emulator window. So you might need to partially edit your Android language pack layout to work properly with scrcpy on a PC. |
Use |
@rom1v Wait, this works on Windows OS too? |
You tell me. Reae the release notes: https://github.com/Genymobile/scrcpy/releases/tag/v2.4 |
@rom1v I tried to use it as this command :
I switched to Hebrew on Windows, and started typing in some app on the Android device via ScrCpy, but it doesn't write it. It writes in English instead.
|
Did you configure the keyboard layout on the device as explained in the doc and in the release notes? |
@rom1v It goes there to a weird screen that I don't understand what I should do in it: I tried to reach "scrcpy" there and choose Hebrew, didn't help. I chose back English-US. Still didn't help. |
I don't know how hebrew keyboards work, but basically, this feature should work as if you plugged/connected a physical keyboard to your device. |
@rom1v Please explain what I should do. You can talk about any language you wish. I'm sure it should be the same. |
This is the expected thing to do. |
@rom1v It seems it's not related to this screenshot, and not to the comment you've linked to.
Can you please somehow avoid the CTRL+Space, and just use what the (Windows) OS has? Meaning to be in sync with the current language of the OS ? It's confusing... |
They are different input methods of independent systems, so you should never expect they are in sync, and when you press Ctrl+Space, it is likely that Windows catch it before scrcpy get it. I think scrcpy should behave like other SDL2 games which totally disable/ignore Windows (and other OS) input methods, because when we use HID keyboard, we are using Android's input method, so the Windows input method is useless. |
@AlynxZhou I know they are different, but Locale is a standard thing, and if they match, why not try to be in sync? Or at least have the combination the same as on Windows? Why is it CTRL+space? |
Why you are assuming people have the same languages for PC and Phone? They may in different sequence, or just totally different, it needs a lot of codes to get and compare current input method.
If you mean Super (the "Windows" key) + Space, it might be caught by Windows, so scrcpy can never get this keybinding. I previously says Ctrl+Space, but it is a mistake, I am saying Super+Space, I think this is what you want. And again, that may be caught by system before application, you may never get this keybinding in an app. And if you still want this, please provide a API to get current keybindings for switch input method. It may still never works (because of the reason I say above), and different OS have different APIs, it is still not worthy to implement such a thing. Ignore system input method is still a better choice, because when you are using scrcpy, you really should never care about what input method is on PC. Update: I think Android does not allow user to set a custom keybinding to switch input methods, you can only use pre-defined keybindings, like |
@AlynxZhou Sure it can be different settings, but it's a good thing to have, no? About the key combination, no, I didn't mean "super"/"windows" key. I mean "CTRL" key. It's at the bottom-left corner of the keyboard, or on the left of the arrows keys. Here, found an image on the Internet to show you what CTRL key is: There is also no indication of which language is currently being set, except when you let the virtual keyboard be shown too. |
No, I'd like scrcpy never touches my system input method, it is not necessary for it to do so.
I know what is a "CTRL" key, if your question is why you cannot use Windows keybinding to switch input method, because which keybinding could be used to switch input method is controlled by Android here, Android does not support the keybinding you used in Windows. The remote desktop application you mentioned can work because the target OS is still Windows so you can use Windows keybinding, but here we are targeting Android, not Windows. scrcpy could fake key sequence, for example when get
Gboard will show indicator in 1. Notification Icons (with physical keyboard) 2. Space Button (when showing virtual keyboard) 3. Floating Toolbar (if you are using a recent version of it). Ask your Android input method devs to add such an indicator is a better approach, instead of using Windows' indicator for it. |
@AlynxZhou What do you mean by "touches my system input method" ? The window is focused, and you use the key combination to change the keyboard to type in a different language. I talked about remote control because you said you can't capture the keys. I didn't mention "super" key. I wrote that ScrCpy uses CTRL+Space, and the one of Window is ALT+SHIFT. I think you can change it though, and for some countries Windows decides to set it differently by default. What things are you hiding from the user? It changes just as CTRL+space would change. As for indicator, that's what I wrote. It won't show an indication unless you show the virtual keyboard. Going to other places to know the current one isn't an indicator that's shown right when you are about to type. |
Are you sure Android could switch input method with Alt+Shift? |
@AlynxZhou I'm not the developer of ScrCpy and not the developer of Android framework. I'm a user of ScrCpy and I also develop apps for Android, but not of this sort. As for "difficult", switching languages isn't done with multiple steps. It's done in a single step. Key combination on Windows, and a single button (or gesture) on Android (in the virtual keyboard). |
What if I have Japanese input method on Windows, but I don't have Japanese input method on Android? |
@AlynxZhou Are you asking about the requesting of trying to be in sync? If it's about the request of trying to be in sync, I don't know what's possible so I'm not the person to ask about what are the options of what would occur. I wonder if Google will have better support for this topic now that Android Studio has its own mirroring solution. Maybe will benefit ScrCpy to support it too. |
Is there anyone who really understand what on the earth his request is? I'm getting more and more confusing while reading his reply... My opinion is scrcpy should not care about Windows input method, because we are just simulating a HID keyboard, and the Windows input method really has nothing with us because we are using Android input method. So just ignore OS input method like most SDL2 games is fine. Anyone who understand his request please help him, I decide to only leave my opinion here. |
@AlynxZhou What is "SDL2 games"? ScrCpy is used for more than games... The request is as I wrote, to try to be in the same way it works on other apps on Windows (and on Linux&MacOS): I didn't mean to upset you. I try to explain for every question. BTW, I tried now on a Samsung device (A32 with Android 13) , and the UI is different. Not sure how to set it up even though its keyboard is also Gboard : I can't choose there multiple languages as on my Pixel 6 device with Android 14. Here I fail to switch to Hebrew, unless I go to this UI manually and choose Hebrew (but then can't write in English till I do the same here, and so on). In short, CTRL+Space doesn't work here unless there is something I've missed here. |
I have hebrew keyboard layout on both my computer and my android keyboard that is in use but it wouldn't let me pass the letters. Any chance to fix this?
The text was updated successfully, but these errors were encountered: