github GlassHaven/Haven v4.15.0
v4.15.0: Keyboard toolbar, tab switching, refactor

latest releases: v6.0.1, v6.0.0, v5.94.92...
8 months ago

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 isWaylandDesktopPage modifier switching caused layout shifts that confused the pager's page indices. Fixed by always applying imePadding on the pager.

Module refactor

New core:toolbar module extracted from feature:terminal:

  • KeyboardToolbar.kt (1732 lines) moved to sh.haven.core.toolbar
  • SelectionToolbarContent decoupled via composable slot parameter
  • No circular dependencies: core:toolbar depends only on core:ui + core:data

Tracking: #47

Full Changelog: v4.14.0...v4.15.0

Don't miss a new Haven release

NewReleases is sending notifications on new releases.