Add a built-in on-screen keyboard for handset sessions
CI / test (push) Failing after 52s

- Opens for text-input-v3 fields, terminals, launcher search, Network password, emoji picker and the password dialog; a KB pill summons it manually.
- Enabled on CHASSIS=handset; CHANDRA_OSK=1|0 overrides, and it stays off under CHANDRA_TEST_CONFIG.
- Work area and panel popups shrink above the keyboard so focused content stays visible.
- Keys send evdev codes with Shift, Ctrl and Alt modifiers.
- chandra-ctl: `screenshot [PATH]` saves a PNG without opening the editor.
- Key names cover the full punctuation set and shifted symbols.
- Launcher plasmoid min width drops from 60 to 36.
This commit is contained in:
nandi committed 2026-11-28 00:18:32 -08:00
1 parent 1205329abd
commit 905dab8725
21 files changed
+1335 -68

No files matched your search

+20 -3
View File
@@ -24,8 +24,25 @@ pub let wallpaper_desktop : String = "wallpaper"
///|
pub let clock_card_desktop : String = "clock-card"
///| What fills a fresh session's desktop: the clock card, as before desktop modules.
let default_desktop : String = "clock-card"
///|
pub let icon_desktop : String = "icon-desktop"
///| Default desktop choice for a fresh session: Icon Desktop on handsets (or
/// CHANDRA_DEFAULT_DESKTOP when set), otherwise the clock card. Tests keep the clock card.
pub fn default_desktop_id() -> String {
if @sys.getenv("CHANDRA_TEST_CONFIG") != "" {
return clock_card_desktop
}
let env = @sys.getenv("CHANDRA_DEFAULT_DESKTOP")
if env.length() > 0 {
return env
}
let info = @utf8.decode_lossy(@sys.read_file_bytes("/etc/machine-info"))
if info.contains("CHASSIS=handset") {
return icon_desktop
}
clock_card_desktop
}
///| A module's frame request is capped at this (ms): a module can't put itself to sleep for
/// hours by mistake and miss its own animation.
@@ -81,7 +98,7 @@ fn DesktopShell::write_desktop_choice(self : DesktopShell) -> Unit {
_ => entries.push(e)
}
}
if self.desk_choice != default_desktop {
if self.desk_choice != default_desktop_id() {
entries.push((@edn.Value::Keyword("desktop"), @edn.Value::Text(self.desk_choice)))
}
write_state_file(entries)