From bb83ac54ef513b25e6346584f9b711df15cccc91 Mon Sep 17 00:00:00 2001 From: arabian Date: Sun, 23 Nov 2025 01:46:47 +0300 Subject: [PATCH] disable hotkeys when some widget is focused --- src/gui/input.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/input.rs b/src/gui/input.rs index ef9a0ba..b871913 100644 --- a/src/gui/input.rs +++ b/src/gui/input.rs @@ -5,6 +5,10 @@ use std::path::PathBuf; impl SoundpadGui { pub fn handle_input(&mut self, ctx: &Context) { + if ctx.memory(|reader| { reader.focused() }.is_some()) { + return; + } + ctx.input(|i| { // Close app on espace if i.key_pressed(Key::Escape) {