Skip to content

feat: Split keyboard layout#1172

Open
ribhar wants to merge 1 commit into
Julow:masterfrom
ribhar:feature/split-keyboard
Open

feat: Split keyboard layout#1172
ribhar wants to merge 1 commit into
Julow:masterfrom
ribhar:feature/split-keyboard

Conversation

@ribhar
Copy link
Copy Markdown

@ribhar ribhar commented Feb 5, 2026

Adds a split keyboard layout option for landscape mode on wide screens.

Features:

  • Split layout with adjustable gap.
  • Dual space bars.

Screenshots:
Screenshot_20260204_215711_Unexpected Keyboard (Debug)

Copy link
Copy Markdown
Owner

@Julow Julow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a feature I wished to add for a long time. Thanks !

Comment thread srcs/juloo.keyboard2/Keyboard2View.java Outdated
@akaoio
Copy link
Copy Markdown

akaoio commented Apr 13, 2026

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.
Thank you so much for your contributions to the world you are amazing people.

@dzaima
Copy link
Copy Markdown
Contributor

dzaima commented Apr 14, 2026

Please make it split into 2 panels

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)

@akaoio
Copy link
Copy Markdown

akaoio commented Apr 18, 2026

Please make it split into 2 panels

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.

@ribhar ribhar force-pushed the feature/split-keyboard branch 3 times, most recently from a19ba93 to d8681e5 Compare April 18, 2026 11:16
- 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.
@ribhar ribhar force-pushed the feature/split-keyboard branch from d8681e5 to 3f5d794 Compare April 18, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants