dmauro / Keypress

A keyboard input capturing utility in which any key can be a modifier key.
http://dmauro.github.io/Keypress/
Apache License 2.0
3.18k stars 313 forks source link

is there a way to capture a key combo? #82

Open mreinstein opened 9 years ago

mreinstein commented 9 years ago

I'm wondering if there's a way to do something like

listener.captureNextCombo(function(combo){
  console.log ('captured combo:', combo);
});

which would print something like:

captured combo: cmd-s
mreinstein commented 9 years ago

the use case is building the key binding system for a game and capturing the key sequence to bind to that action.

dmauro commented 9 years ago

There isn't currently any way to do that with Keypress. Sorry :(