From 195ca80c3959c35819ef33d84efd5970321b7614 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Thu, 2 Nov 2023 00:07:17 +0400 Subject: Try latin character from other layout for action This should allow users of non-latin layouts use bindings without changing layout back to latin input capable one. Fixes #21. --- src/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input.rs') diff --git a/src/input.rs b/src/input.rs index bcd86c35..b57c4c20 100644 --- a/src/input.rs +++ b/src/input.rs @@ -61,7 +61,7 @@ impl State { let bindings = &this.niri.config.borrow().binds; let key_code = event.key_code(); let modified = keysym.modified_sym(); - let raw = keysym.raw_syms().first().cloned(); + let raw = keysym.raw_latin_sym_or_raw_current_sym(); should_intercept_key( &mut this.niri.suppressed_keys, bindings, -- cgit