diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2023-07-02 16:24:07 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2023-07-02 16:24:07 +0200 |
commit | ab76e2d64bcbae9f855a184d5956880c7a89cedb (patch) | |
tree | d178ea2a39593c37d6c4910177f0ad31d633a37b | |
parent | 7b7b426d726457b8cd48baefb6242cbda0fd7f01 (diff) | |
download | nihav-player-ab76e2d64bcbae9f855a184d5956880c7a89cedb.tar.gz |
keycode modifier is a bitmask
-rw-r--r-- | videoplayer/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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); |