« get me outta code hell

Add Home/End support to scroll to top/bottom - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/ui.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2019-09-15 18:38:48 -0300
committerFlorrie <towerofnix@gmail.com>2019-09-15 18:39:58 -0300
commit332a40a1980a7f246fd67e0a91cdbf104f46bf41 (patch)
tree496e1712fa1e0bd2b247d7be889db791a0a31b50 /ui.js
parentacb6e7bd48e11105b8e57ed703fd75782a2933cc (diff)
Add Home/End support to scroll to top/bottom
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui.js b/ui.js
index bdc4258..b1eb7c4 100644
--- a/ui.js
+++ b/ui.js
@@ -60,6 +60,8 @@ const keyBindings = [
   ['isMenu', 'f'],
   ['isScrollToStart', 'g', {caseless: false}],
   ['isScrollToEnd', 'G', {caseless: false}],
+  ['isScrollToStart', telc.isHome],
+  ['isScrollToEnd', telc.isEnd],
   ['isTogglePause', telc.isSpace],
   ['isToggleLoop', 'l', {caseless: false}],
   ['isStop', telc.isEscape],