From a23ce10311d2be91777099b90d8ca755a6b636e9 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Thu, 12 Jun 2025 15:16:29 +0300 Subject: screenshot_ui: Move selection when holding Space --- src/input/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/input') diff --git a/src/input/mod.rs b/src/input/mod.rs index b0bfd962..fec6c2d5 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -396,6 +396,10 @@ impl State { return FilterResult::Intercept(None); } + if let Some(Keysym::space) = raw { + this.niri.screenshot_ui.set_space_down(pressed); + } + let bindings = &this.niri.config.borrow().binds; let res = should_intercept_key( &mut this.niri.suppressed_keys, -- cgit