Auth dialog: OSK auto-open, hex keysyms, and remote text input
CI / test (push) Failing after 52s

- Show the on-screen keyboard when the password dialog opens or reopens, and hide it on submit. Tapping the password field reopens it after a manual Hide.
- Route Chandra Remote text commits (including Enter, Tab, and Backspace) into the password dialog while it is up.
- Keymap: read hex keysyms (`0x31`, `0x20ac`, `0xffb7`) from libxkbcommon text-v1 keymaps, and accept `0x01000000`-range Unicode keysyms.
- Keymap: keypad keys produce digits when NumLock (Mod2) is active.
- Tests cover hex keysym parsing, NumLock keypad mapping, and the OSK/remote-text flow.
This commit is contained in:
nandi committed 2026-11-28 18:51:15 -08:00
1 parent 40c5d6722c
commit 851c39d827
5 files changed
+218 -12

No files matched your search

+9 -1
View File
@@ -313,6 +313,7 @@ fn ChandraCompositor::open_auth(self : ChandraCompositor, l : AuthLink, v : @pol
// Nothing else gets the keyboard or the pointer while it is up.
self.set_kbd_focus(None)
self.leave_pointer()
self.osk_sync()
self.damage.mark_full()
}
@@ -330,6 +331,7 @@ fn ChandraCompositor::close_auth(self : ChandraCompositor, dismiss : Bool) -> Un
Some(w) => if self.windows.contains(w) { self.set_kbd_focus(Some(w)) }
None => ()
}
self.osk_sync()
self.damage.mark_full()
}
None => ()
@@ -448,7 +450,13 @@ fn ChandraCompositor::auth_input(self : ChandraCompositor, ui : AuthUi, ev : @ne
PointerButton(button, pressed) =>
if pressed && button == 272U {
match self.auth_hit(ui) {
Some(f) => self.auth_act(ui, ui.view.activate(f))
Some(f) => {
if f == Field && self.osk_enabled {
self.osk_manual_hide = false
self.osk_sync()
}
self.auth_act(ui, ui.view.activate(f))
}
None => ()
}
}