diff options
Diffstat (limited to 'ui/form')
-rw-r--r-- | ui/form/ListScrollForm.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/form/ListScrollForm.js b/ui/form/ListScrollForm.js index a06efda..ae267c6 100644 --- a/ui/form/ListScrollForm.js +++ b/ui/form/ListScrollForm.js @@ -74,6 +74,10 @@ module.exports = class ListScrollForm extends Form { super.keyPressed(keyBuf) } + this.scrollSelectedElementIntoView() + } + + scrollSelectedElementIntoView() { const sel = this.inputs[this.curIndex] // If the item is ahead of our view (either to the right of or below), |