mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-04-28 06:21: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 {
|
impl SoundpadGui {
|
||||||
pub fn handle_input(&mut self, ctx: &Context) {
|
pub fn handle_input(&mut self, ctx: &Context) {
|
||||||
|
if ctx.memory(|reader| { reader.focused() }.is_some()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ctx.input(|i| {
|
ctx.input(|i| {
|
||||||
// Close app on espace
|
// Close app on espace
|
||||||
if i.key_pressed(Key::Escape) {
|
if i.key_pressed(Key::Escape) {
|
||||||
|
|||||||
Reference in New Issue
Block a user