Keyboard in landscape mode is ugly
-
The landscape mode for the keyboard is nearly unusable. letters are stretched and scaled in a strange way. Has anybody got an idea how to fix this?
thanks in advance! -
Yeah, that's because tall screens are detected as tablets, The code definitely needs to be updated to properly handle this. For now, you may modify a file to change the keyboard height in landscape.
-
@kugiigi thanks! Can you tell me which file I have to modify?
-
@kugiigi said in Keyboard in landscape mode is ugly:
Yeah, that's because tall screens are detected as tablets, The code definitely needs to be updated to properly handle this. For now, you may modify a file to change the keyboard height in landscape.
Not sure what you mean by "tablet" in this case. The Mi A2 has a 2:1 screen, albeit with many more pixels than pinephone, the keyboard works fine on pinephone in plasma mobile, and even works OK on my PC with 21:9 ultrawide display.
-
@messayisto This file https://github.com/ubports/keyboard-component/blob/xenial/qml/keys/key_constants.js. You have to change the value of
tabletKeyboardHeightLandscape
. On your device, it's located at/usr/share/maliit/plugins/com/ubuntu/keys
.@dobey Upstream maliit may have changed the logic for the dimensions. UT on the Pinephone have the same issue.
-
@kugiigi thank you so much, this did the trick. Is there a value to rezise the (too-big-)upper border?
-
@messayisto It's called the word ribbon. Check something similar in the same file.
-
@kugiigi thank you so much once again!
kind regards -
@kugiigi I wonder why tabletKeyboardHeightLandscape is responsible for this, since there is also a phoneKeyboardHeightLandscape?
-
@luksus Because the code currently checks the width of the current screen and if it's higher than the specified threshold, the keyboard uses all tablet specific values. Since newer phones are taller, they are detected as tablets by the keyboard.