Focuses the previous menu item.
()
| 645 | |
| 646 | /** Focuses the previous menu item. */ |
| 647 | prev() { |
| 648 | const prevItem = this.inputs.activeItem(); |
| 649 | this.listBehavior.prev(); |
| 650 | |
| 651 | if (prevItem?.expanded()) { |
| 652 | prevItem?.close(); |
| 653 | this.inputs.activeItem()?.open({first: true}); |
| 654 | } |
| 655 | } |
| 656 | |
| 657 | /** Closes the menubar and refocuses the root menu bar item. */ |
| 658 | close() { |
no test coverage detected