mirror of
https://github.com/phranck/TUIkit.git
synced 2026-06-20 09:54:37 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user