summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ui/tui.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/tui.sh b/src/ui/tui.sh
index 1bc16f4..592e96a 100644
--- a/src/ui/tui.sh
+++ b/src/ui/tui.sh
@@ -270,14 +270,14 @@ tui_show_menu()
elif [ ${focus} -eq 0 ]; then
case "${key}" in
KEY_ENTER) break;;
- KEY_UP)
+ KEY_UP | 'k')
[ ${curpos} -gt 0 ] || continue
curpos=$(($curpos - 1))
if [ ${curpos} -lt ${scrpos} ]; then
scrpos=${curpos}
fi
;;
- KEY_DOWN)
+ KEY_DOWN | 'j')
[ $(($curpos + 1)) -lt ${lsth} ] || \
continue
curpos=$(($curpos + 1))
@@ -286,11 +286,11 @@ tui_show_menu()
scrpos=$(($curpos - $scrh + 1))
fi
;;
- KEY_HOME)
+ KEY_HOME | 'g')
curpos=0
scrpos=0
;;
- KEY_END)
+ KEY_END | 'G')
curpos=$(($lsth - 1))
scrpos=$(($lsth - $scrh))
;;