Files
pyrofetes-frontend/node_modules/@angular/cdk/fesm2022/focus-key-manager.mjs
CHEVALLIER Abel cb235644dc init
2025-11-13 16:23:22 +01:00

23 lines
633 B
JavaScript
Executable File

import { ListKeyManager } from './list-key-manager.mjs';
class FocusKeyManager extends ListKeyManager {
_origin = 'program';
/**
* Sets the focus origin that will be passed in to the items for any subsequent `focus` calls.
* @param origin Focus origin to be used when focusing items.
*/
setFocusOrigin(origin) {
this._origin = origin;
return this;
}
setActiveItem(item) {
super.setActiveItem(item);
if (this.activeItem) {
this.activeItem.focus(this._origin);
}
}
}
export { FocusKeyManager };
//# sourceMappingURL=focus-key-manager.mjs.map