From ab76e2d64bcbae9f855a184d5956880c7a89cedb Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sun, 2 Jul 2023 16:24:07 +0200 Subject: [PATCH] keycode modifier is a bitmask --- videoplayer/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/videoplayer/src/main.rs b/videoplayer/src/main.rs index e3d2d00..a60c15d 100644 --- a/videoplayer/src/main.rs +++ b/videoplayer/src/main.rs @@ -487,7 +487,7 @@ impl Player { println!(); return Ok(true); }, - Keycode::Q if matches!(keymod, Mod::RSHIFTMOD | Mod::LSHIFTMOD) => { + Keycode::Q if keymod.contains(Mod::RSHIFTMOD) || keymod.contains(Mod::LSHIFTMOD) => { self.end = true; println!(); return Ok(true); -- 2.39.5