From 0cc4862f9cf0baf50c7ccd21caa0bce05374a4bc Mon Sep 17 00:00:00 2001 From: Tw93 Date: Mon, 16 Mar 2026 20:19:32 +0800 Subject: [PATCH] fix(touchid): add Q key support to quit menu Allow users to press 'q' or 'Q' to quit the Touch ID setup menu, in addition to ESC key. This fixes the "Invalid key" error when users press Q as suggested by the prompt. Fixes #575 --- bin/touchid.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/touchid.sh b/bin/touchid.sh index 76b5cc2..9459e7f 100755 --- a/bin/touchid.sh +++ b/bin/touchid.sh @@ -292,7 +292,7 @@ show_menu() { echo "" case "$key" in - $'\e') # ESC + $'\e' | q | Q) # ESC or Q return 0 ;; "" | $'\n' | $'\r') # Enter @@ -310,7 +310,7 @@ show_menu() { drain_pending_input # Clean up any escape sequence remnants case "$key" in - $'\e') # ESC + $'\e' | q | Q) # ESC or Q return 0 ;; "" | $'\n' | $'\r') # Enter