Sha256: 4a15debf40db48406b9035bd92cc56fd5282b49acbf3ab70a39bbdd3d826d675
Contents?: true
Size: 819 Bytes
Versions: 19
Compression:
Stored size: 819 Bytes
Contents
(function() { window.keys = { ALT: false, SHIFT: false, x: false, y: false, z: false }; $(window).on('keydown', function(e) { switch (e.keyCode) { case 16: return window.keys.SHIFT = true; case 18: return window.keys.ALT = true; case 88: return window.keys.x = true; case 89: return window.keys.y = true; case 90: return window.keys.z = true; } }); $(window).on('keyup', function(e) { switch (e.keyCode) { case 16: return window.keys.SHIFT = false; case 18: return window.keys.ALT = false; case 88: return window.keys.x = false; case 89: return window.keys.y = false; case 90: return window.keys.z = false; } }); }).call(this);
Version data entries
19 entries across 19 versions & 1 rubygems