From ec4335e07f4819e82ec2cc95fba36764e5bcf8f2 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Thu, 16 Feb 2023 19:15:42 +0000 Subject: js: Hide type menu if there's only one preset and no configuration It seems a bit silly to display it when there's only one option. --- emccpre.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emccpre.js') diff --git a/emccpre.js b/emccpre.js index 7a99e3d..bca2aef 100644 --- a/emccpre.js +++ b/emccpre.js @@ -614,7 +614,7 @@ function initPuzzle() { // Key to open the menu on KaiOS. if ((event.key == "SoftRight" || event.key == "F10") && !menuform.contains(document.activeElement)) { - menuform.querySelector("li div").focus(); + menuform.querySelector("li div, li button").focus(); event.preventDefault(); event.stopPropagation(); } -- cgit v1.1