Skip to content

feat: add option to use code instead key in defineShortcuts #3817

Open
@cany748

Description

@cany748

Description

Currently defineShortcuts work only on English layout, adding this option will allow to use on any layout.

I'm ready to make a pr

Additional context

Similar:

if (shortcut.useCode ? e.code.toLowerCase() !== `key${shortcut.key}` : e.key.toLowerCase() !== shortcut.key) {
  continue;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions