Keyboard shortcuts wish list

Is it possible to set custom keyboard shortcuts or alter them without editing app/assets/javascripts/discourse/lib/keyboard_shortcuts.js?

I should rephrase. It’s definitely possible. What’s the easiest way to do that?


EDIT: Here’s what I did, roughly. I’m on a docker install.

  1. Download https://raw.githubusercontent.com/discourse/discourse/master/app/assets/javascripts/discourse/lib/keyboard_shortcuts.js

  2. Make adjustments.

  3. Create a diff file and move into the docker shared folder.

  4. Add a line to app.yml to patch keyboard_shortcuts.js:

     - exec:
         cd: $home/plugins
         cmd:
           - mkdir -p plugins
           - git clone https://github.com/discourse/docker_manager.git
           - patch ../app/assets/javascripts/discourse/lib/keyboard_shortcuts.js < /shared/keys.diff
    
  5. Rebuild Discourse: ./launcher rebuild app