summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ui/tui.sh5
1 files changed, 2 insertions, 3 deletions
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