]> git.nihav.org Git - nihav-player.git/commitdiff
keycode modifier is a bitmask
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sun, 2 Jul 2023 14:24:07 +0000 (16:24 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sun, 2 Jul 2023 14:24:07 +0000 (16:24 +0200)
videoplayer/src/main.rs

index e3d2d002a1ddba0514859aada31504f043760825..a60c15d363a3179f167795d6ffc0866ce3be49cb 100644 (file)
@@ -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);