-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace Hotkey library #275
Conversation
Replaces react-hotkeys with react-hotkeys-hooks. The latter is maintained, easier in use and already used in other Opencast frontend projects. Also makes a small change to the hotkey cheat sheet, where hotkeys that can currently not be used are displayed in a lower opacity.
This pull request has conflicts ☹ |
This pull request has conflicts ☹ |
This pull request has conflicts ☹ |
This pull request has conflicts ☹ |
This pull request has conflicts ☹ |
This pull request has conflicts ☹ |
This pull request has conflicts ☹ |
This pull request has conflicts ☹ |
The browser console is complaining:
Should we add the missing translations to en-US (see #406, why en-US and not en-GB)? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went ahead and clicked through, and it worked. I have a few minor comments, but otherwise, looking good!
This probably also "solves" #73, right? |
WIth no theodul player and no editor integrated with the admin ui, there are also no more hotkeys for those respective tools. Hence their translations can go as well.
React complains about missing keys. This is an easier fix than trying to discriminate between keys that should be translated and keys that should not be translated.
Looks good to me 😊 |
This pull request has conflicts ☹ |
Resolves #203
Replaces react-hotkeys with react-hotkeys-hooks.
The latter is maintained, easier in use and already used in other Opencast frontend projects.
Also makes a small change to the hotkey cheat sheet, where hotkeys that can currently not be used are
displayed in a lower opacity.