Focuses the next menu item.
()
| 634 | |
| 635 | /** Focuses the next menu item. */ |
| 636 | next() { |
| 637 | const prevItem = this.inputs.activeItem(); |
| 638 | this.listBehavior.next(); |
| 639 | |
| 640 | if (prevItem?.expanded()) { |
| 641 | prevItem?.close(); |
| 642 | this.inputs.activeItem()?.open({first: true}); |
| 643 | } |
| 644 | } |
| 645 | |
| 646 | /** Focuses the previous menu item. */ |
| 647 | prev() { |
no test coverage detected