Skip to content

Assigning keyboard shortcuts to user scripts without first having to run registerKeyHandler #9419

@lollopus

Description

@lollopus

Detailed Description
I was looking to add a keyboard shortcut to a front end script of mine and realised that registerKeyHandler seems to be the only approach. This seems problematic, because it implies that the script must be called manually the first time to create the binding.

Context
All user scripts should be immediately available to the user via keyboard shortcuts.

One solution would be to add a "shortcut" field in the Scripts window. Ideally, when the user adds a key WK should check for conflicts with the current set of default + user shortcuts.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions