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

+21
View File
@@ -2129,6 +2129,27 @@ pub fn ChandraCompositor::remote_commit_text(
text : String,
) -> Bool {
self.note_activity(@sys.monotonic_ms())
if self.auth is Some(_) {
for ch in text {
match self.auth {
Some(cur) =>
match ch {
'\n' | '\r' =>
self.auth_act(cur, cur.view.key(@polkit.key_enter, 0U, None))
'\t' => self.auth_act(cur, cur.view.key(@polkit.key_tab, 0U, None))
'\u{08}' | '\u{7f}' =>
self.auth_act(cur, cur.view.key(@polkit.key_backspace, 0U, None))
_ if ch.to_int() >= 0x20 =>
self.auth_act(cur, cur.view.key(0U, 0U, Some(ch)))
_ => ()
}
None => break
}
}
self.damage.mark_full()
self.frame_changed = true
return true
}
if self.shell.popup_open() {
for ch in text {
let name = match ch {