Skip to content

Conversation

@LukasKalbertodt
Copy link
Member

@LukasKalbertodt LukasKalbertodt commented Aug 22, 2025

These are used in Tobira as well, so we moved the code to appkit.
This is to get in line with our decision on how to display these keys.
Tobira also does it like that now.
Copy link
Contributor

@owi92 owi92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks reasonable and still works.

Comment on lines +188 to +191
const key = groupId as keyof typeof SHORTCUTS;
const shortcuts = Object.entries(group).map(([name, keys]) => ({
// eslint-disable-next-line @typescript-eslint/no-explicit-any
label: t((SHORTCUT_TRANSLATIONS[key] as any)[name]),

This comment was marked as resolved.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ye I looked briefly into it but couldn't find a solution quickly :/ its annoying and I don't understand it

@LukasKalbertodt LukasKalbertodt merged commit 9fb08bc into opencast:main Sep 2, 2025
2 checks passed
@LukasKalbertodt LukasKalbertodt deleted the use-appkit-shortcuts branch September 2, 2025 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants