diff options
author | P. J. McDermott <pj@pehjota.net> | 2015-10-28 23:58:18 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2015-10-28 23:58:18 (EDT) |
commit | b10b531b6e7280e131c899e0765f9150413f21cd (patch) | |
tree | b64b7578d9b6428a0d1559d6ee02a54549e008f7 /src | |
parent | 062fd4637d8f1d7ad39834586758c0fdaf64fa19 (diff) | |
download | firman.sh-b10b531b6e7280e131c899e0765f9150413f21cd.zip firman.sh-b10b531b6e7280e131c899e0765f9150413f21cd.tar.gz firman.sh-b10b531b6e7280e131c899e0765f9150413f21cd.tar.bz2 |
tui_show_prompt(): Handle KEY_INVALID
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/tui.sh | 4 |
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 |