From 6c08ba307aef03938e009601ac81bc140c38a1dd Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 22 Mar 2024 20:27:58 +0400 Subject: input: Make functions return the whole bind --- src/ui/screenshot_ui.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui') diff --git a/src/ui/screenshot_ui.rs b/src/ui/screenshot_ui.rs index 897761a1..79245387 100644 --- a/src/ui/screenshot_ui.rs +++ b/src/ui/screenshot_ui.rs @@ -316,12 +316,12 @@ impl ScreenshotUi { Ok((rect.size, copy.to_vec())) } - pub fn action(&self, raw: Option, mods: ModifiersState) -> Option { + pub fn action(&self, raw: Keysym, mods: ModifiersState) -> Option { if !matches!(self, Self::Open { .. }) { return None; } - action(raw?, mods) + action(raw, mods) } pub fn selection_output(&self) -> Option<&Output> { -- cgit