diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/form/ListScrollForm.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/ui/form/ListScrollForm.js b/ui/form/ListScrollForm.js index 00a6da1..a6de8db 100644 --- a/ui/form/ListScrollForm.js +++ b/ui/form/ListScrollForm.js @@ -73,14 +73,6 @@ module.exports = class ListScrollForm extends Form { } } - if (telc.isPageUp(keyBuf)) { - this.previousPage() - ret = false; break handleKeyPress - } else if (telc.isPageDown(keyBuf)) { - this.nextPage() - ret = false; break handleKeyPress - } - ret = super.keyPressed(keyBuf) } @@ -116,26 +108,6 @@ module.exports = class ListScrollForm extends Form { super.firstInput(...args) } - previousPage() { - this.curIndex -= this.h - this.scrollItems -= this.h - if (this.curIndex < 0) { - this.curIndex = 0 - this.scrollItems = 0 - } - this.updateSelectedElement() - } - - nextPage() { - this.curIndex += this.h - this.scrollItems += this.h - if (this.curIndex >= this.inputs.length) { - this.curIndex = this.inputs.length - 1 - this.scrollToEnd() - } - this.updateSelectedElement() - } - scrollElementIntoEndOfView(element) { // We can decide how many items to scroll past by moving forward until // the item's far edge is visible. |