From 8fdf8a581d9362f1a09b2f091aa48748875797f3 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 10 Oct 2021 14:02:59 -0300 Subject: don't explode if grouplike form is empty! --- ui.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui.js') diff --git a/ui.js b/ui.js index b8dd63c..6d07f2b 100644 --- a/ui.js +++ b/ui.js @@ -2842,6 +2842,10 @@ class GrouplikeListingForm extends ListScrollForm { } keyPressed(keyBuf) { + if (this.inputs.length === 0) { + return + } + if (input.isSelectUp(keyBuf)) { this.selectUp() } else if (input.isSelectDown(keyBuf)) { -- cgit 1.3.0-6-gf8a5