From 62348f48fbe2da7ab2af0e3ea71b0fbe7380b31e Mon Sep 17 00:00:00 2001
From: Florrie <towerofnix@gmail.com>
Date: Mon, 4 Jun 2018 23:40:50 -0300
Subject: Form.selectInput function

---
 ui/form/Form.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/ui/form/Form.js b/ui/form/Form.js
index e5d756a..f1734ac 100644
--- a/ui/form/Form.js
+++ b/ui/form/Form.js
@@ -36,6 +36,13 @@ module.exports = class Form extends FocusElement {
     }
   }
 
+  selectInput(input) {
+    if (this.inputs.includes(input)) {
+      this.curIndex = this.inputs.indexOf(input)
+      this.updateSelectedElement()
+    }
+  }
+
   keyPressed(keyBuf) {
     // Don't do anything if captureTab is set to false. This is handy for
     // nested forms.
-- 
cgit 1.3.0-6-gf8a5