Skip to content

Accept allowedModifiers array on register #10

@patrickberkeley

Description

@patrickberkeley

Stemming from #9.

The following example would create shortcuts for control+a, alt+a, shift+a:

keyManager.register({
  executionKey: 'A',
  allowedModifiers: ['shift', 'alt', 'control'],
  callback: () => {
    //
  },
  type: 'keydown',
});

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