Customizable hotkeys
- [x] I agree to follow the Code of Conduct that this project adheres to.
- [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Is your feature request related to a problem? Please describe. Customizable shortcuts would make it easier for people like me to seamlessy integrate drawio in their workflow by transitioning from similar softwares. In addition, I'd assume having the shortcuts saved outside the code would be a better software practice (in terms of maintainability) than to have them hardcoded.
Describe the solution you'd like I envision the common way in which this feature is implemented:
- A "Hotkeys"/"Keyboard shortcuts" button in the "Edit" dropdown
- Clicking it opens a modal, displaying a two columns list of "action name", "shortcut"
- Clicking a cell in the "shortcut" column opens a prompt, listening for the input buttons being pressed and then overriding the current key combination on Enter
Nice-to-have:
- An option to restore keybindings to default
Describe alternatives you've considered A less UI-intensive alternative could be to just have a JSON somewhere in the drawio installation path (this may also be a necessary milestone for the previous solution), here's an example of how it could look like ( snippet taken from vscode's keybindings.json ):
[
{
"key": "ctrl+shift+8",
"command": "workbench.action.tasks.build"
},
{
"key": "ctrl+shift+b",
"command": "-workbench.action.tasks.build"
},
{
"key": "ctrl+shift+b",
"command": "HookyQR.beautify"
},
{
"key": "ctrl+alt+s",
"command": "saveAll"
},
]
Additional context
I'm running the latest release v22.1.18.
This feature request has been asked previously in this 2020 issue, but has since been automatically marked as stale and wontfix, instead of bumping it I've decided to make another one by following the current template for feature requests.
Regardless if this will ever be implemented or not, thank you developers for your hard work. I just discovered this application and I'm glad it exists.