From b10b531b6e7280e131c899e0765f9150413f21cd Mon Sep 17 00:00:00 2001
From: P. J. McDermott <pj@pehjota.net>
Date: Wed, 28 Oct 2015 23:58:18 -0400
Subject: tui_show_prompt(): Handle KEY_INVALID

---
(limited to 'src')

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
--
cgit v0.9.1