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