Keyboard toolbar for Wayland desktop + stability fixes
Keyboard toolbar
The Wayland desktop now has the same keyboard toolbar as the terminal — Esc, Tab, Ctrl, Alt, Shift, arrow keys, function keys, and symbol keys. This enables vim, tmux, shell history navigation, and tab completion from the soft keyboard.
Architecture: extracted KeyboardToolbar to a new core:toolbar shared module. Both feature:terminal and core:wayland import from it — identical UI, consistent experience. The Wayland toolbar wraps it with an evdev keycode translation layer (WaylandToolbar.kt).
Bug fixes
-
Black screen on tab switch — switching away from the Desktop tab and back showed a black screen. The compositor's scene had no buffer to commit after surface recreation at the same dimensions. Fixed by caching the last rendered frame and re-blitting it immediately when the TextureView surface is recreated.
-
Nav bar wrong tab — tapping "Terminal" in the bottom nav bar sometimes navigated to "Connections" instead, particularly after keyboard dismiss. The conditional
isWaylandDesktopPagemodifier switching caused layout shifts that confused the pager's page indices. Fixed by always applyingimePaddingon the pager.
Module refactor
New core:toolbar module extracted from feature:terminal:
KeyboardToolbar.kt(1732 lines) moved tosh.haven.core.toolbarSelectionToolbarContentdecoupled via composable slot parameter- No circular dependencies:
core:toolbardepends only oncore:ui+core:data
Tracking: #47
Full Changelog: v4.14.0...v4.15.0