mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
eb93041c5b
commit
daf2f50b00
@@ -166,9 +166,13 @@ export class ExpandableNavbarSectionComponent extends NavbarSectionComponent imp
|
|||||||
* @param event
|
* @param event
|
||||||
*/
|
*/
|
||||||
navigateDropdown(event: KeyboardEvent): void {
|
navigateDropdown(event: KeyboardEvent): void {
|
||||||
if (event.key === 'Tab') {
|
if (event.code === 'Tab') {
|
||||||
this.deactivateSection(event, false);
|
this.deactivateSection(event, false);
|
||||||
return;
|
return;
|
||||||
|
} else if (event.code === 'Escape') {
|
||||||
|
this.deactivateSection(event, false);
|
||||||
|
(document.querySelector(`a[aria-controls="${this.expandableNavbarSectionId()}"]`) as HTMLElement)?.focus();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
Reference in New Issue
Block a user