mirror of
https://github.com/tw93/Mole.git
synced 2026-03-22 21:20:09 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user