Update the keyboard shortcuts based on user preferences
Increasing Access
Like in most of the editor(s), users can change the keymaps based on their preferences. There should also be a feature to in p5.js-web-editor to change the keyboard shortcuts as user likes.
Feature request details
- Add a
editbutton - create
contextorredux slicefor global state(s) mgmt - track the keys using
onKeyDownoronKeyUp, etc. - Also ensure that shortcut don't clash with browser shortcuts
I have added the PR to check the feasibility of this feature.
Thanks for opening this @karanBRAVO, I think the idea is interesting!
Before adding new features, we generally like to gain some sort of discussion or consensus first among a few folks before starting developing on it. However, since you already have something down, I think it'd be great if you could share some screenshots or videos (either in the PR or here in this issue) of how it functions!
One note I might add though is that we're currently in the process of refactoring the Editor component for the CodeMirror 6 upgrade. You can reference the changes here to see what the component looks like so far. Since we're planning to integrate and work with these changes first, I might suggest waiting until that work is done before revisiting this feature.