Skip to content

[enhancement]: Refactor HotKeys Implementation #3959

@Millu

Description

@Millu

Is there an existing issue for this?

  • I have searched the existing issues

Contact Details

No response

What should this feature add?

Hotkeys registered all over the app and they often conflict, or do two things for one hotkey

The solution is to use the react-hotkeys-hook’s scoping features to change the hotkey scope depending on where you are in the app, and enable hotkeys based on this.

Discussion notes:

We also want to centralize the key combos & associated actions and make them user-editable.

This would be implemented in stages:

  1. Store the hotkey data in memory (e.g. just a constant)
  2. Implement editing
    a. Persist the hotkeys to localStorage
    b. Allow editing of the hotkeys
  3. Implement backend permanent storage (?)
  • Are hotkeys server state or client state? I think server state, so they need to be stored in the backend, but this is open to dissenting opinions
  • Needs backend storage mechanism - JSON or db?
  • Needs API routes

Alternatives

No response

Aditional Content

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions