Focuses the next menu item.
()
| 607 | |
| 608 | /** Focuses the next menu item. */ |
| 609 | next() { |
| 610 | const prevItem = this.inputs.activeItem(); |
| 611 | this.listBehavior.next(); |
| 612 | |
| 613 | if (prevItem?.expanded()) { |
| 614 | prevItem?.close(); |
| 615 | this.inputs.activeItem()?.open({first: true}); |
| 616 | } |
| 617 | } |
| 618 | |
| 619 | /** Focuses the previous menu item. */ |
| 620 | prev() { |
no test coverage detected