Merge pull request #18904 from Scroody/fix-shortcut-hook

Fix: shortcut hook
This commit is contained in:
Ramón Souza 2023-10-06 15:57:50 -03:00 committed by GitHub
commit 20ff16876c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ export function useShortcut(param: string): string {
);
const shortcutsString: string = filteredShortcuts
.filter((el) => el.descId === param.toLowerCase())
.filter((el) => el.descId.toLowerCase() === param.toLowerCase())
.map((el) => el.accesskey)
.pop() || '';