1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-22 18:30:08 +00:00

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
This commit is contained in:
Tw93
2026-03-16 20:19:32 +08:00
parent cfa0a82057
commit 0cc4862f9c

View File

@@ -292,7 +292,7 @@ show_menu() {
echo "" echo ""
case "$key" in case "$key" in
$'\e') # ESC $'\e' | q | Q) # ESC or Q
return 0 return 0
;; ;;
"" | $'\n' | $'\r') # Enter "" | $'\n' | $'\r') # Enter
@@ -310,7 +310,7 @@ show_menu() {
drain_pending_input # Clean up any escape sequence remnants drain_pending_input # Clean up any escape sequence remnants
case "$key" in case "$key" in
$'\e') # ESC $'\e' | q | Q) # ESC or Q
return 0 return 0
;; ;;
"" | $'\n' | $'\r') # Enter "" | $'\n' | $'\r') # Enter