IcarusWorks / ember-key-manager

A service for (un)binding keyboard up and down events.
MIT License
42 stars 11 forks source link

Add ability to require strict order of keys for macros with non-modifier, non-execution keys #29

Closed patrickberkeley closed 6 years ago

patrickberkeley commented 6 years ago

Depends on https://github.com/IcarusWorks/ember-key-manager/issues/28.

If the macro keys must be pressed in a specific order, add an option strictOrder:

manager.addMacro({
  executionKeys: ['a', 'f'],
  type: 'keydown',
  modifierKeys: ['altKey', 'ctrlKey'],
  strictOrder: true,
});
patrickberkeley commented 6 years ago

Closing because we're not going to do multiple execution keys right now, see #28