-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
Will there ever be a version to function with German external keyboards? #387
Comments
There are two options for using German layout.
|
I am still testing too and in 54 I will describe my knowledge in comparison to 1.02.04 when I'm done. I have a question about the problem here:
I make a little video with the often used german keys 7089 and toggle keys (shift/altgr) to get DE-Keys.mp4 |
I'm sorry, but even if this request was closed, I beg to differ.
Before posting I certainly tested (also) the The closest I can get to a working external (Logitech K810) DE keyboard in termux-x11 is (i) using the But even then, the "<, >, |" key behaves incorrect. I.e. it produces single quotation marks. Even worse, in this situation, the "<, >, |" characters have disappeared from the keyboard completely. Let me also mention, that it is absolutely confusing, that there seems to be an erratic correlation between the internal keyboard, I mean the soft-keyboard of the Android device, set to be the standard keyboard, and the degree to which the external keyboard will eventually function with termux-x11. I.e., say, a 'Hackers keyboard' set to 'Standard' will lead to less correct keys than an 'External Keyboard Helper Pro', a.s.o. There should be some statement for users: "You should set your internal soft-keyboard to xyz with abc language". I'm also missing that.
Even if this may work (I will test), this is not really a reasonable 'option': Keys like "<, >, |" are bread-n-butter keys for various coding tasks. Your are certainly not suggesting, we should physically switch back and fro on a once-per-second basis between an external keyboard and an on-screen key bar, while working? Let me just state once more, that with all this hard and fantastic work on termux-x11, it is such a pity that many potential users will be excluded, simply because we cannot properly interface to it. |
Unfortunately there is no way to achieve better accuracy in getting scancodes on Android devices. You can try to change keyboard maps in |
@agnostic-apollo maybe you know the way to get correct symbols when |
@xaverm You are right with "Fantastic Work on Termux-X11" by @twaik. The keys As I said above, I am not yet finished with my comparison check. The three-finger campaign for EK can also be done by the Vol-Down button. Three finger can also be four or more, which bothers in direct mode, because EK is constantly switched on/off and I can no longer see my taskbar (or anything else is hidden). |
If hardware keyboard or android is sending wrong keycodes, then an app cannot just guess the correct keycodes. The user would have to define a mapping somehow. You can try looking into custom keyboard layouts. |
xaverm says that keycodes/scancodes sent by Android depend on current IME. For some reasons IME behaviour when it sends events to SurfaceView differs from behaviour when it sends events to EditText. Is there a way to make it behave the same way? |
I haven't looked into how android behaves internally but there is indeed some influence of the soft keyboard on the hardware keyboard. For termux-app, it gets solved by disabling the software keyboard for the activity. I don't know if this applies to termux-x11. |
I think a problem appears because SurfaceView is not recognised as a text editor. When I set german layout on my phone it sends hardware keyboard events corresponding to english layout. Is there a way to override this behaviour? |
I assume you mean The layouts listed are provided by individual apps, which mainly may be the default system keyboard or gboard, etc. Like Gboard also prevents language change of even the softkeyboard with the earth key and says to use ctrl+space if a hardware keyboard is connected, so there is some additional inter-linkage. If layout change is not working for you, then could be your device bug. https://xiaomi.eu/community/threads/change-physical-keyboard-layout.60396/
You may try overriding |
In post on keyboard issues in termux-x11, I occasionally read similar statements. I just never understand what to make out of them.
That is why I am posting here, and that is why I am asking for when termux-x11 might eventually also work with external DE keyboards.
Finally one less related thing:
|
I can not force keyboard mapping to replace symbols. It seems like there are some different "wrong keycodes" sent on different devices and different IME. |
So you are suggesting, that there will be certain Android devices and certain IMEs which will just not allow termux-x11 to be used with DE external keyboards? While this is beyond me, it would certainly be a grim perspective. Hopefully you will find a solution down the line. I'll keep my fingers crossed. |
There is a hope that android sends right symbols to InputConnection so I'll be able to intercept them and override symbols I get from KeyEvent. |
I cannot confirm that except for one (SM-A33) of my 5 Android devices. If I use an ssh terminal, a TeamViewer connection or a scrcpy copy of the device on my Win-PC, the 9=6+3 buttons (above |
Weird? But anyway, this is a plain termux issue for you then, and not a termux-x11 issue, as for me. For me and for many years and on several different Samsung tablets (currently SM-X906B), using Logitech and Pearl external DE bluetooth keyboards has never caused a single glitch for any key. And since I mainly use termux for typing math documents with Emacs and LaTeX on the go, you can rest assured that practically any crazy combination of all possible symbol keys on the keyboard arise while typing. I'd like to have this functionality also on termux-x11 + xfce4 running. That's why I'm posting here ... and maybe @twaik can get it done. |
The development of the app is operated by @agnostic-apollo and x11 by @twaik . If the two can agree on common functions in the two APK and that works correctly on all devices would be helped. My Samsung Pad is an SM-P610 with stylus. Unfortunately, even without a chance to use my BT keyboard Logitech K370/K375-DE for the 9=6+3 keys. Only my SM-A33-5G cell phone and only app is ok. But we also have different XClients as the goal. I try to develop "WM-free ones", that work exclusively with fingers on a small display. The detours described above to use my BT-KB, are also ok for me and on the Pad I use often pop view for both apps on one display, which leads to double EK but only one On-Screen-KB. Here also the two APK do not work well together. |
This situation is less likely for decent brands but termux app does have at least one fix for this situation.
This can happen too, depending on the key character map files that are installed in the https://source.android.com/docs/core/interaction/input/key-character-map-files
Normal apps have no control over such preprocessing before events are delivered. For termux app at least, you can enable https://github.com/termux/termux-app#debugging x11 seems to log codes too. termux-x11/app/src/main/cpp/lorie/android.c Line 458 in 690bd92
Then issue is with x11 app and you shouldn't have to fix anything. x11 app will need fixing. But then again ralf is getting issues on both. Termux terminal overrides
You could still play around with custom layouts as mentioned in termux/termux-app#2237 (comment). https://github.com/ris58h/custom-keyboard-layout |
It is pretty much weird. When I set @agnostic-apollo I tried to override |
Are you using Its' not going to, it's meant for soft keyboard events, hardware keyboard events are normally only sent to |
Yes.
I've set OnKeyListener on my view so it is catching all possible events. |
I meant https://developer.android.com/develop/ui/views/touch-and-input/keyboard-input/commands Note that termux calls https://developer.android.com/reference/android/view/KeyEvent#getUnicodeChar(int) |
I am using |
Does it happen in termux app? |
I am not sure. I did not check thi since I do not speak any languages which alphabet uses dead keys. |
If everyone could just use ASCII, that would be great, make all our lives so much easier. |
Also weird thing. When I hold AltGr+LeftAlt and trying to send |
Maybe your or some other accessibility service is messing things up, turn them off. Also https://source.android.com/docs/core/interaction/input/getevent https://stackoverflow.com/questions/12280657/does-anyone-know-what-the-output-from-getevent-means |
I did not enable any.
|
Is there a way to implement process-local IME or test IME in process without enabling it globally? |
Not realy, the |
Not really. On russian layout there are |
@xaverm @RalfWerner Can you please test the latest build with external keyboard? |
I used my german BT-KB that can be coupled via Special Keys with up to 3 devices. I connected my AM-A33 to PC by ssh, opened there an 9-keys.mp4This is done with last artifact (still 1.03.00 but created: |
@RalfWerner I do not really understand what exactly happens on this video and what keys were pressed... |
All Steps decribed in the second sentence! |
What 9 keys? |
above! it was wrong! |
It was three weeks ago... Ok. |
Does it happen with enabled |
Step |
In the video:26 above with the short description is in addition to The You don't need to answer here - better in Discord or when I finished comparison with ekeys. |
You are using too much too many abbreviations, I had no success in decrypting it... |
That doesn't matter! You could follow the links to get more information or check the actions by yourself. Only With the rest I will continue to annoy you in #54 when I have done something repeatable. I hope a little more understandable. I've deleted the rest above and added a picture of my BT-keyboard and devices. |
I've been testing new versions from this repo for several months now ... many really nice improvements!
But the 1st and foremost thing one would like to do, i.e., type in stuff into desktop apps from an external keyboard - which is a K810 with German layout in my case - has never ever worked for me, regarding the complete symbol set. I've tried myriads of combinations of Android internal standard keyboards, xfce keyboard settings, and termux-x11 preferences. It just won't work. At the end there are always a few keys remaining, that function incorrect, if at all.
If in principle termux-x11 is not only meant for people with US system localization US keyboards, then it might of great help for potential users, if on termux-x11 repo's front page there would be a description for some tested and working setups using some typical external keyboards with international layouts (obviously including a German one ;) )
The text was updated successfully, but these errors were encountered: