mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +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
|
||||
*/
|
||||
navigateDropdown(event: KeyboardEvent): void {
|
||||
if (event.key === 'Tab') {
|
||||
if (event.code === 'Tab') {
|
||||
this.deactivateSection(event, false);
|
||||
return;
|
||||
} else if (event.code === 'Escape') {
|
||||
this.deactivateSection(event, false);
|
||||
(document.querySelector(`a[aria-controls="${this.expandableNavbarSectionId()}"]`) as HTMLElement)?.focus();
|
||||
return;
|
||||
}
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
Reference in New Issue
Block a user