feat: remove escape key functionality from input handling

This commit is contained in:
2026-01-28 00:28:34 +03:00
parent 03df631690
commit 4e7606fdc6
+1 -6
View File
@@ -1,5 +1,5 @@
use crate::gui::SoundpadGui; use crate::gui::SoundpadGui;
use egui::{Context, Id, Key, Modifiers}; use egui::{Context, Key, Modifiers};
use std::path::PathBuf; use std::path::PathBuf;
@@ -15,11 +15,6 @@ impl SoundpadGui {
pub fn handle_input(&mut self, ctx: &Context) { pub fn handle_input(&mut self, ctx: &Context) {
let modifiers = self.modifiers(ctx); let modifiers = self.modifiers(ctx);
// Close app on espace
if self.key_pressed(ctx, Key::Escape) {
std::process::exit(0);
}
// Open/close settings // Open/close settings
if self.key_pressed(ctx, Key::I) { if self.key_pressed(ctx, Key::I) {
self.app_state.show_settings = !self.app_state.show_settings; self.app_state.show_settings = !self.app_state.show_settings;