Keyup Event with JQuery.Hotkeys 0.8 Patched #21

by nwinkler

HTML

<script src="https://raw.github.com/millermedeiros/jquery.hotkeys/76705824b8e9df91b229b64bfdb560dc17a1b0b2/jquery.hotkeys.js"></script>
Text: <input type="text" />
Url: <input type="url" />
<br/>
Hotkey: 0 - jquery.hotkeys 0.8 with patch #21 - this works in all cases.
<br/>
Output: <div id="out"></div>

JavaScript

$(document).bind('keydown', '0', function() {
    console.log('key down');
    $('#out').append(document.createTextNode('!'));
});