Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

eslint fix

Oliver Günther30d8a2e851d7
diff --git a/frontend/src/app/shared/directives/a11y/keyboard-shortcut.service.ts b/frontend/src/app/shared/directives/a11y/keyboard-shortcut.service.ts
index 55febeb48b8..ee39e5a64d3 100644
--- a/frontend/src/app/shared/directives/a11y/keyboard-shortcut.service.ts
+++ b/frontend/src/app/shared/directives/a11y/keyboard-shortcut.service.ts
@@ -146,7 +146,7 @@ export class KeyboardShortcutService {
const rows:HTMLElement[] = Array.from(list.querySelectorAll('tbody > tr'));
let index:number;
if (document.activeElement) {
- index = rows.indexOf(document.activeElement);
+ index = rows.indexOf(document.activeElement as HTMLElement);
const target = rows[index + offset];
target?.focus();
}