mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-04-27 22:11:22 +00:00
feat: remove escape key functionality from input handling
This commit is contained in:
+1
-6
@@ -1,5 +1,5 @@
|
||||
use crate::gui::SoundpadGui;
|
||||
use egui::{Context, Id, Key, Modifiers};
|
||||
use egui::{Context, Key, Modifiers};
|
||||
|
||||
use std::path::PathBuf;
|
||||
|
||||
@@ -15,11 +15,6 @@ impl SoundpadGui {
|
||||
pub fn handle_input(&mut self, ctx: &Context) {
|
||||
let modifiers = self.modifiers(ctx);
|
||||
|
||||
// Close app on espace
|
||||
if self.key_pressed(ctx, Key::Escape) {
|
||||
std::process::exit(0);
|
||||
}
|
||||
|
||||
// Open/close settings
|
||||
if self.key_pressed(ctx, Key::I) {
|
||||
self.app_state.show_settings = !self.app_state.show_settings;
|
||||
|
||||
Reference in New Issue
Block a user