Keypress
Keypress copied to clipboard
is there a way to capture a key combo?
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
the use case is building the key binding system for a game and capturing the key sequence to bind to that action.
There isn't currently any way to do that with Keypress. Sorry :(