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

how to make a key pressed and won't interrupt by other keys before it keyup ? #132

Open HiZhaoxiaoyang opened 7 years ago

HiZhaoxiaoyang commented 7 years ago

for instance , I pressed key 'a' and hold it, then tap other keys kown and up, the key 'a' will pressed continuously until key upped.

code like this:

`listener.single_repate("a", function() {

console.log("a will repeat continuously before key up");

});`

dmauro commented 7 years ago

That looks like your system is sending multiple key down events, which is pretty typical. I'm not totally clear on the behavior you're hoping for.