mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-04-28 14:31:23 +00:00
disable hotkeys when some widget is focused
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user