1
0
Fork 0
forked from wry/wry

simple-im: allow disabling unicode input with backspace

This commit is contained in:
Julian Orth 2025-10-16 16:54:46 +02:00
parent cb25c2b44a
commit b77fd6d0b2

View file

@ -206,6 +206,7 @@ impl InputMethodKeyboardGrab for SimpleIm {
con.text_input.send_done();
} else if sym == syms::Escape
|| (sym == syms::c && is_control)
|| (ui.chars == 0 && sym == syms::BackSpace)
|| (ui.chars == 0 && matches!(sym, syms::w | syms::d) && is_control)
{
self.unicode_input_enabled.set(false);