Sets the default active state of the menu before receiving interaction for the first time.
()
| 209 | |
| 210 | /** Sets the default active state of the menu before receiving interaction for the first time. */ |
| 211 | setDefaultStateEffect(): void { |
| 212 | if (this.hasBeenInteracted() || this.hasBeenHovered()) return; |
| 213 | |
| 214 | if (this.inputs.items().length > 0) { |
| 215 | this.setDefaultState(); |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | /** Handles keyboard events for the menu. */ |
| 220 | onKeydown(event: KeyboardEvent) { |
no test coverage detected