Focuses the previous menu item.
()
| 622 | |
| 623 | /** Focuses the previous menu item. */ |
| 624 | prev() { |
| 625 | const prevItem = this.inputs.activeItem(); |
| 626 | this.listBehavior.prev(); |
| 627 | |
| 628 | if (prevItem?.expanded()) { |
| 629 | prevItem?.close(); |
| 630 | this.inputs.activeItem()?.open({first: true}); |
| 631 | } |
| 632 | } |
| 633 | |
| 634 | /** Closes the menubar and refocuses the root menu bar item. */ |
| 635 | close() { |
no test coverage detected