IcarusWorks / ember-key-manager

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

Add ability for macros to have non-execution, non-modifier keys #28

Closed patrickberkeley closed 6 years ago

patrickberkeley commented 6 years ago

It would be nice to be able to have macros like:

manager.addMacro({
  executionKeys: ['a', 'f'],
  type: 'keydown',
  modifierKeys: ['altKey', 'ctrlKey']
});

The above would fire when alt + ctrl + a + f are pressed simultaneously in any order.

patrickberkeley commented 6 years ago

@gossi we've discussed this and thought it through and are going to stick with:

0-N modifier keys + 1 execution key

As the formula for a macro. Reasons: