« get me outta code hell

Pass false to firstInput to not select the form if it wasn't already selected - tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
path: root/ui/form/ListScrollForm.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-01-19 09:29:57 -0400
committerFlorrie <towerofnix@gmail.com>2018-01-19 09:29:57 -0400
commit6ee1936266dda3bd22e4412a7b51cdc6e3c396d5 (patch)
tree8b07b4ed2d6ebab22814c792c4e1c6e29249498f /ui/form/ListScrollForm.js
parent159c042e3cddf1f585812840b4189295f2e5ebba (diff)
Pass false to firstInput to not select the form if it wasn't already selected
Diffstat (limited to 'ui/form/ListScrollForm.js')
-rw-r--r--ui/form/ListScrollForm.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/form/ListScrollForm.js b/ui/form/ListScrollForm.js
index daa640a..a06efda 100644
--- a/ui/form/ListScrollForm.js
+++ b/ui/form/ListScrollForm.js
@@ -106,10 +106,10 @@ module.exports = class ListScrollForm extends Form {
     this.fixLayout()
   }
 
-  firstInput() {
+  firstInput(...args) {
     this.scrollItems = 0
 
-    super.firstInput()
+    super.firstInput(...args)
   }
 
   getItemPos(item) {