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

+24
View File
@@ -217,6 +217,30 @@ fn ChandraCompositor::freeze_screen(self : ChandraCompositor) -> @renderer.Pixma
}
}
///| Capture the current screen directly to PNG bytes without opening the editor.
pub fn ChandraCompositor::capture_png(self : ChandraCompositor) -> Bytes? {
let full = @scene.Rect::new(0, 0, self.output_w, self.output_h)
match self.frame_shots {
Some(host) =>
if (host.snapshot)() {
let png = (host.png)(full)
if png.length() > 0 { Some(png) } else { None }
} else {
None
}
None =>
match self.grab_screen() {
Some(frame) => {
for i = 3; i < frame.data.length(); i = i + 4 {
frame.data[i] = b'\xff'
}
Some(@renderer.encode_png_compressed(frame))
}
None => None
}
}
}
///| A window's rectangle on screen with its title bar and borders (Spectacle's default).
fn ChandraCompositor::outer_rect(self : ChandraCompositor, wid : UInt64) -> @scene.Rect? {
match self.windows.get(wid) {