Keyup Event with JQuery.Hotkeys 0.8

by nwinkler

HTML

<script src="https://github.com/tzuryby/jquery.hotkeys/raw/479c001b064494cb1f76304f82e870bebb69f879/jquery.hotkeys.js"></script>
Text: <input type="text" />
Url: <input type="url" />
<br/>
Hotkey: 0 - jquery.hotkeys 0.8 - somewhat broken, the event will fire on the assigned keystroke ("$" here) inside of HTML5 fields, e.g. the URL field, but not in "Text" fields.
<br/>
Output: <div id="out"></div>

JavaScript

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