Setup the FocusKeyManager with the correct orientation for the menu.
()
| 196 | |
| 197 | /** Setup the FocusKeyManager with the correct orientation for the menu. */ |
| 198 | private _setKeyManager() { |
| 199 | this.keyManager = new FocusKeyManager(this.items) |
| 200 | .withWrap() |
| 201 | .withTypeAhead() |
| 202 | .withHomeAndEnd() |
| 203 | .skipPredicate(() => false); |
| 204 | |
| 205 | if (this.orientation === 'horizontal') { |
| 206 | this.keyManager.withHorizontalOrientation(this.dir?.value || 'ltr'); |
| 207 | } else { |
| 208 | this.keyManager.withVerticalOrientation(); |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | /** |
| 213 | * Subscribe to the menu trigger's open events in order to track the trigger which opened the menu |
nothing calls this directly
no test coverage detected