From: Kostya Shishkov Date: Sun, 2 Jul 2023 14:24:07 +0000 (+0200) Subject: keycode modifier is a bitmask X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=ab76e2d64bcbae9f855a184d5956880c7a89cedb;p=nihav-player.git keycode modifier is a bitmask --- 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);