From 9dcc5b86e73fda790dd81fdbb12ae33534144515 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 29 Oct 2015 00:29:27 -0400 Subject: tui_show_prompt(): Handle all unused KEY_*s --- diff --git a/src/ui/tui.sh b/src/ui/tui.sh index 5c88f23..b121906 100644 --- a/src/ui/tui.sh +++ b/src/ui/tui.sh @@ -244,9 +244,7 @@ tui_show_prompt() # Input. key="$(term_getch)" - if [ "x${key}" = xKEY_INVALID ]; then - continue - elif [ "x${key}" = xKEY_TAB ]; then + if [ "x${key}" = xKEY_TAB ]; then focus=$(expr \( ${focus} + 1 \) % 2) elif [ ${focus} -eq 0 ]; then case "${key}" in @@ -279,6 +277,7 @@ tui_show_prompt() curpos=$(($curpos + 1)) fi ;; + KEY_*);; *) if [ ${curpos} -lt ${len} ]; then # TODO: Handle curpos not at end -- cgit v0.9.1