From 51479514205bfcaa2cb87a17439ca43e470faa58 Mon Sep 17 00:00:00 2001 From: phranck Date: Wed, 28 Jan 2026 22:39:04 +0100 Subject: [PATCH] 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. --- Sources/TUIKit/App/App.swift | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Sources/TUIKit/App/App.swift b/Sources/TUIKit/App/App.swift index cc2959c..7384046 100644 --- a/Sources/TUIKit/App/App.swift +++ b/Sources/TUIKit/App/App.swift @@ -581,12 +581,8 @@ internal final class AppRunner { // 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 }