Unexpected-Keyboard icon indicating copy to clipboard operation
Unexpected-Keyboard copied to clipboard

Compose key and hardware keyboard

Open exzombie opened this issue 2 years ago • 5 comments

I'm really happy the compose key feature has landed, it's quite cool, especially the way the keys change to show you what's available. What I was looking forward to the most was the potential of using it together with a bluetooth keyboard. But I'm not sure how to do that. I would like to use the right-alt key as the compose key, but there's no option for this that I can find. Did I miss something?

exzombie avatar Mar 12 '24 06:03 exzombie

① You can put keys anywhere you want them with custom layouts—Edit the QWERTY XML file and copypaste the text into the app. ② This is a soft keyboard and it doesn't come up if I attach a hard keyboard. I don't have a Bluetooth keyboard but imagine that Unexpected takes over if you disable or power-off the other keyboard. Maybe after suitable customization, you won't need two keyboards.

Spike-from-NH avatar Mar 13 '24 10:03 Spike-from-NH

If only it were that simple! I won't pretend to understand how Android input stack works, but the software keyboard definitely does affect the behavior of the hardware keyboard. That is in addition to the hardware keyboard layout configuration. You can easily end up with a mess if you use incompatible layouts.

I like Unexpected Keyboard, and I like using a compose key with a hardware keyboard on my computer. It would be perfect if I could make the compose key work with the HW keyboard on my phone as well. How do I do that?

exzombie avatar Mar 13 '24 12:03 exzombie

The software keyboard can intercept physical key presses while it's visible and adding physical bindings to the software keyboard's feature would be a good idea!

It's not possible at the moment, contribution welcome!

Julow avatar Mar 13 '24 22:03 Julow

Unlike say Hackerś keyboard, the settigs do indicate that Unexpected Keyboard is somehow in control of my physical keyboard and can let me set layouts etc. If I set it to US Intl, ' and " and ˋ and ˜ become dead keys (which isn't exactly what I want, I want a key like altgr or compose for typing diacritics).

snan avatar Jun 26 '25 08:06 snan

Unexpected Keyboard is such a great OSK but the experience when having a hardwarae keyboard plugged in is not good with a lot of weird quirks. I don't necessarily need a compose key exactly but ideally I'd want ~ and ` and ' to remain as normal US non-dead completely normal keys, but having a way, even if that way is quite convoluted, of typing latin-1 characters like a with dots or a with ring.

snan avatar Nov 07 '25 18:11 snan