summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/tui.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/tui.sh b/src/ui/tui.sh
index c3d447c..01720d6 100644
--- a/src/ui/tui.sh
+++ b/src/ui/tui.sh
@@ -241,7 +241,9 @@ tui_show_prompt()
# Input.
key="$(term_getch)"
- if [ "x${key}" = xKEY_TAB ]; then
+ if [ "x${key}" = xKEY_INVALID ]; then
+ continue
+ elif [ "x${key}" = xKEY_TAB ]; then
focus=$(expr \( ${focus} + 1 \) % 2)
elif [ ${focus} -eq 0 ]; then
case "${key}" in