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