diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2023-02-16 19:15:42 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2023-02-16 19:15:42 +0000 |
| commit | ec4335e07f4819e82ec2cc95fba36764e5bcf8f2 (patch) | |
| tree | cd9623ac6757b772d33b2f580183d5acf82b5959 /emccpre.js | |
| parent | 3cd51d001769c657ebb4184bd05343af4d7e12b1 (diff) | |
| download | puzzles-ec4335e07f4819e82ec2cc95fba36764e5bcf8f2.zip puzzles-ec4335e07f4819e82ec2cc95fba36764e5bcf8f2.tar.gz puzzles-ec4335e07f4819e82ec2cc95fba36764e5bcf8f2.tar.bz2 puzzles-ec4335e07f4819e82ec2cc95fba36764e5bcf8f2.tar.xz | |
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.
Diffstat (limited to 'emccpre.js')
| -rw-r--r-- | emccpre.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); } |