Conversation
|
This pull request is deployed at test.editor.opencast.org/1677/2026-04-20_11-37-07/ . |
|
This pull request has conflicts ☹ |
a1b0d4c to
6de7cd5
Compare
|
This pull request has conflicts ☹ |
6de7cd5 to
f9e9dcd
Compare
ferishili
left a comment
There was a problem hiding this comment.
Thanks @Arnei,
Here are a few points I'd like to highlight after testing the current behavior:
-
Saving without a key combination clears the entry silently
- Right now, saving without entering a key combination results in an empty value being saved.
- At minimum, the UI should notify the user that the existing shortcut is being removed.
- Ideally, saving an empty value should be prevented entirely, and instead a dedicated Delete option should be provided (either inside the modal or, even better, next to the edit button with a confirmation step).
-
Empty key combinations are displayed as a small gray square
- When an entry has no assigned key combination, the UI currently shows a small gray square.
- It would be clearer to display a label such as "Not defined" or "No combination" instead.
-
Duplicate key combinations are currently allowed
- At the moment, it's possible to assign the same shortcut (e.g.,
ArrowLeft) to multiple entries. - The system should detect duplicates and notify the user.
- Ideally, the UI should offer the option to replace the existing assignment with confirmation.
- At the moment, it's possible to assign the same shortcut (e.g.,
-
resetHotkeyandresetAllHotkeysreducers delete instead of reset- The reducers
resetHotkeyandresetAllHotkeysinsrc/redux/hotkeySlice.tscurrently remove values instead of restoring defaults, and they are not being used. - It would be better if these reducers restored the default key combinations instead.
- I'd also suggest adding "Reset to default" (per entry) and "Reset all to default" actions on the keyboard controls page.
- The reducers
f9e9dcd to
8e62469
Compare
|
This pull request has conflicts ☹ |
|
Thanks for the nice suggestions. I hope I managed to address them reasonably well. |
Allows users to configure their own hotkeys. This should empower users to choose the hotkeys that work for them, instead of having to use the cumbersome "Shift + Alt + something" combinations. Configured hotkeys are persisted in local storage. To that end, this patch introduces the redux-persist package and all the necessary boilerplate that it requires. This also makes more changes to KeyboardControls.tsx than strictly necessary in the hopes of making it a little less complicated.
With this changed the key recorder or hotkeys should listen for the produced key, better supporting alternative keyboards.
Setting a hotkey to nothing was possibly before, but felt very unintentional as the user had to save an empty hotkey sequence. This prevents users from saving empty hotkeys sequences, and instead gives them an explicit button for unsetting.
Do not allow a user to set a hotkey if that hotkey already exists. Disables in the save button in such a case and shows a warning message.
To allow user to reset a hotkey to its default sequence(s).
We use "+" for delimiting purposes, so it would be problematic if user included that in their hotkeys sequence.
92bc136 to
151b125
Compare
|
Thanks @arne, However, there are still a couple of small things left to address:
|


Allows users to configure their own hotkeys.
This should empower users to choose the hotkeys that work for them, instead of having to use the cumbersome "Shift + Alt + something" combinations.
Configured hotkeys are persisted in local storage. To that end, this patch introduces the redux-persist package and all the necessary boilerplate that it requires.
This also makes more changes to KeyboardControls.tsx than strictly necessary in the hopes of making it a little less complicated.