forge
Explore
Log in

Don't you dare go Hollow

Try latin character from other layout for action

Browse files at this commit

195ca80c3959c35819ef33d84efd5970321b7614Kirill ChibisovParent: c460038
This should allow users of non-latin layouts use bindings without
changing layout back to latin input capable one.

Fixes #21.
src/input.rsmodified+1 -1
@@ -61,7 +61,7 @@ impl State {
61 let bindings = &this.niri.config.borrow().binds;61 let bindings = &this.niri.config.borrow().binds;
62 let key_code = event.key_code();62 let key_code = event.key_code();
63 let modified = keysym.modified_sym();63 let modified = keysym.modified_sym();
64- let raw = keysym.raw_syms().first().cloned();64+ let raw = keysym.raw_latin_sym_or_raw_current_sym();
65 should_intercept_key(65 should_intercept_key(
66 &mut this.niri.suppressed_keys,66 &mut this.niri.suppressed_keys,
67 bindings,67 bindings,