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.
Assigning multiple shortcuts on a single line separated by comma as in keymaster.js doesn't works.
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.
Maybe the above could be supported for backwards compatibility but a more clean declaration could be promoted :
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.