1
0
Fork 0
forked from wry/wry

Merge pull request #647 from mahkoh/jorth/simple-im-backspace-disable

simple-im: allow disabling unicode input with backspace
This commit is contained in:
mahkoh 2025-10-16 16:58:07 +02:00 committed by GitHub
commit 796269d31e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);