Skip to content

Comma separated shortcuts doesn't works #3

@nrako

Description

@nrako

Assigning multiple shortcuts on a single line separated by comma as in keymaster.js doesn't works.

shortcuts: {
  'right, space': 'someMethod'
}

I understand you support the scope feature of keymaster.js https://github.com/madrobby/keymaster/#scopes which make it ugly to supports multiple shortcuts and a scope.

shortcuts: {
  // fulgy but could be nice to supports that for backwards compatibility
  'right, space myscope': 'notReallyNeat'
}

Maybe the above could be supported for backwards compatibility but a more clean declaration could be promoted :

shortcuts: {
  'right, space': {scope: 'myScope', method: 'someMethod'}
}

Let me know your thoughts and if you haven't time to implement it, I'll see if I have some for a fork-pull-request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions