fix: Remove ESC as quit shortcut - only 'q' quits the app

ESC should only be used for navigation (back to menu), not for quitting.
The 'q' key is the only way to quit the app.
This commit is contained in:
phranck
2026-01-28 22:39:04 +01:00
parent da3a0a1922
commit 5147951420
+1 -5
View File
@@ -581,12 +581,8 @@ internal final class AppRunner<A: App> {
// Default handling (only if no handler consumed the event)
switch event.key {
case .escape:
// ESC always exits (could also be made configurable)
isRunning = false
case .character(let char) where char == "q" || char == "Q":
// 'q' respects quitBehavior setting
// 'q' is the only way to quit (respects quitBehavior setting)
if statusBar.isQuitAllowed {
isRunning = false
}