]> git.nihav.org Git - nihav-player.git/commitdiff
videoplayer: add shift-arrow for half-minute seeks master
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 23 Aug 2025 14:55:39 +0000 (16:55 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 23 Aug 2025 14:55:39 +0000 (16:55 +0200)
videoplayer/src/main.rs

index bb1231d7c4b9ae757b6bd47cd3304718ac6ef1a6..3a3cd3f0ff41f6428a499b2fd8c8e623f99847b4 100644 (file)
@@ -536,6 +536,10 @@ impl Player {
                     },
                     Keycode::Return | Keycode::KpEnter => return Ok(true),
                     Keycode::R          => { self.seek(0, true,  dmx, disp_queue)?; },
+                    Keycode::Right if keymod.contains(Mod::RSHIFTMOD) || keymod.contains(Mod::LSHIFTMOD) => { self.seek(30, true,  dmx, disp_queue)?; },
+                    Keycode::Kp6 if keymod.contains(Mod::RSHIFTMOD) || keymod.contains(Mod::LSHIFTMOD) => { self.seek(30, true,  dmx, disp_queue)?; },
+                    Keycode::Left if keymod.contains(Mod::RSHIFTMOD) || keymod.contains(Mod::LSHIFTMOD) => { self.seek(30, false,  dmx, disp_queue)?; },
+                    Keycode::Kp4 if keymod.contains(Mod::RSHIFTMOD) || keymod.contains(Mod::LSHIFTMOD) => { self.seek(30, false,  dmx, disp_queue)?; },
                     Keycode::Right    | Keycode::Kp6 => { self.seek(10, true,  dmx, disp_queue)?; },
                     Keycode::Left     | Keycode::Kp4 => { self.seek(10, false, dmx, disp_queue)?; },
                     Keycode::Up       | Keycode::Kp8 => { self.seek(60, true,  dmx, disp_queue)?; },