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
Mapping of (built-in) hardware keyboard keys as modifiers #12
Comments
Would you accept a PR for this? (I do not have anything ready yet, I have just looked at the code and I have at least some ideas how to proceed.) I doubt I would have enough time (and expertise ATM) to do the UI for it, but I could at least contribute support for a separate configuration file for the key mappings, which could be manually edited (or copied to the right place) inside the app. |
Hmm... A day or two and I could provide some preliminary solution to extend with a PR. |
Guys with a bunch of exotic devices could become happy ;)
Please, test: https://github.com/green-green-avk/AnotherTerm/releases/tag/%2312-1
|
And yes, I'll finally fix the settings UI drop down lists rendering just a bit later. |
TL;DR: I cannot test MkIIIv9 because the If I force the orientation to be portrait(*), I can see the With landscape orientation, the Maybe the help text could be made accessible over a Anyway thanks a lot again for working on that, I really appreciate it! 👍 |
In MkIIIv10 the The layout still has a few problems (both landscape and portrait orientations):
Ideas:
Apart from those issues, the layout stays usable even when defining a lot a mappings: there are still a few (scrollable) lines of help text, and the mappings list is scrollable too, well done! 👍 All in all I could map all special keys of the built-in keyboard and almost all Android standard keys (including However IMHO keys that are mapped to modifier keys like |
Hmm... What's better: either release a toggled modifier on a first regular key press or not? BTW, there is no reliable way to distinguish a built-in and an externally connected input devices until API 29. |
Maybe a double press on a modifier key should hold it, and a single press afterwards should release it (like Android does for If that is too much to implement, maybe rather release the modifier after the 1st regular key, but fans of Emacs keybindings may differ... Also for On detecting built-in keyboards: maybe yet another preference flag is needed then... :-/ |
Dirty implementation at the moment. To be refactored.
Possibly intermittent variant as settings UI has definitely required to be fixed: |
Tested MkIIIv14 (after MkIIIv13), the settings UI is almost perfect now 👍, and I am happy already only with "Ctrl🔒¹". However:
Anyway feel free to close this bug already, AnotherTerm finally reached feature-parity with the GNURoot Debian app: I can at last delete the latter and use your nice app instead! |
Just alphabetic sort order or something more button class related?
https://github.com/green-green-avk/AnotherTerm/releases/tag/MkIIIv15_release?
Thank you. |
Any sort would help, but sorting by the hardware key's label would be the most useful IMHO as said in #12 (comment).
If only
The "lock indicator" is now much less distracting but still noticeable, I like it! 👍 |
BTW, feel free to leave some comment here: #5 if you have some objections. November is coming. |
...
I do not mind about losing Insert or even Alt, but having Ctrl is crucial, and (at least in Vi) it can also compensate for other missing keys (Esc: Ctrl-C, Tab: Ctrl-I).
Some way of mapping physical keys or buttons to PC keys would be perfect, even when only over a textual configuration file. The Key Mapping Editor might already support this, but I am currently unsure how to use it, more documentation about it could help.
One should be able to map at least Volume-Up, Volume-Down and Back (should be present on many devices), ideally also the hardware keyboards' exotic keys ("Search", "Chat",
web
(sic!) andOK
keys here) by entering their key code.I won't push it 😉 by asking for the Menu button which is probably almost nowhere else to be found nowadays, or for the Power and Home ones which IIRC need convoluted tricks...
Originally posted by @guillaume-d in #11 (comment)
...
Here you are then:
web
: same as above (opens the stock web browser app)OK
is KEYCODE_DPAD_CENTER(Please tell me if you'd need more logs from the IME Test app.)
However listing each and every physical key Android ever defined for mapping in the UI might be too much given the few users concerned.
(Note that the other apps listed in #10 all do something similar but all leave out some keys that nobody claimed, and their UI is already pretty crowded.)
As said in #11 (comment) a more generic solution might be more appropriate: I for one would not mind having to install IME Test and copy part of the results from there during the initial configuration to get my own keys working.
Originally posted by @guillaume-d in #11 (comment)
The text was updated successfully, but these errors were encountered: