JSBin
<!doctype html>
<html lang="en-US">
<head>
<script src="https://rawgit.com/dandv/KeyboardJS/master/keyboard.js"></script>
</head>
<body>
<script>
KeyboardJS.on('k', function () {
alert('Pressed k');
});
</script>
</body>
</html>
After I press k and dismiss the alert in the latest Chrome, any keypress will trigger the function. This seems like a pretty big bug, so maybe I haven't read the docs correctly, or there needs to be a gotcha for this simple usage?
JSBin
After I press
kand dismiss the alert in the latest Chrome, any keypress will trigger the function. This seems like a pretty big bug, so maybe I haven't read the docs correctly, or there needs to be a gotcha for this simple usage?