Sets the default active state of the menu before receiving interaction for the first time.
()
| 222 | |
| 223 | /** Sets the default active state of the menu before receiving interaction for the first time. */ |
| 224 | setDefaultStateEffect(): void { |
| 225 | if (this.hasBeenInteracted() || this.hasBeenHovered()) return; |
| 226 | |
| 227 | if (this.inputs.items().length > 0) { |
| 228 | this.setDefaultState(); |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | /** Handles keyboard events for the menu. */ |
| 233 | onKeydown(event: KeyboardEvent) { |
no test coverage detected