feat: Split keyboard layout#1172
Conversation
Julow
left a comment
There was a problem hiding this comment.
This is a feature I wished to add for a long time. Thanks !
|
Please make it split into 2 panels, not just one panel because it wastes the area in the center and it locks both left and right side vertically. Having 2 float panels, it is possible to have the left and right sides at 2 different positions and there is no center space that blocks user vision. |
Is there any keyboard that does this? Even Google's Gboard's split mode does one panel with a blocked center, so it might just not be possible. (there might exist some options on making the center more transparent? Would need to also be a floating window for most effect, and still wouldn't allow clicking through) |
Yeah actually it is just an idea, I don't have Java nor Android background. I believe you guys will do your best. Thank you. |
a19ba93 to
d8681e5
Compare
- Move split layout logic into LayoutModifier.split_layout() to transform KeyboardData at build time - Only apply split transformation when both split_keyboard and wide_screen are enabled - Remove split-specific rendering and touch detection code from Keyboard2View - Simplify onMeasure(), getKeyAtPosition(), and onDraw() by removing gap tracking logic - Current keyboard behavior is fully preserved - keys display and respond identically - Reduces complexity in drawing code by centralizing split layout transformation like addNumPad() Addresses review feedback to simplify drawing code by handling split mode in KeyboardData transformation.
d8681e5 to
3f5d794
Compare
Adds a split keyboard layout option for landscape mode on wide screens.
Features:
Screenshots:
