From 8dbbd1d1e1a181da493586257099ce79fd66986c Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 20 Jun 2025 17:50:34 +0200 Subject: [PATCH] videoplayer: fix recognition of plus key for volume up --- videoplayer/src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/videoplayer/src/main.rs b/videoplayer/src/main.rs index bd60310..94dea16 100644 --- a/videoplayer/src/main.rs +++ b/videoplayer/src/main.rs @@ -549,6 +549,12 @@ impl Player { self.acontrol.set_volume(self.volume); } }, + Keycode::Equals if keymod.contains(Mod::RSHIFTMOD) || keymod.contains(Mod::LSHIFTMOD) => { + self.volume = (self.volume + 10).min(MAX_VOLUME); + if !self.mute { + self.acontrol.set_volume(self.volume); + } + }, Keycode::Minus | Keycode::KpMinus => { self.volume = self.volume.saturating_sub(10); if !self.mute { -- 2.39.5