From 171a2695580c6862a83b8e92feb24ad1525f1416 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 23 Aug 2025 16:55:39 +0200 Subject: [PATCH] videoplayer: add shift-arrow for half-minute seeks --- videoplayer/src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/videoplayer/src/main.rs b/videoplayer/src/main.rs index bb1231d..3a3cd3f 100644 --- a/videoplayer/src/main.rs +++ b/videoplayer/src/main.rs @@ -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)?; }, -- 2.39.5