Sha256: 89d71da6b84654d809b6e0fb41fb1838503eab7aec52f951925568c3ce60d1a4
Contents?: true
Size: 572 Bytes
Versions: 19
Compression:
Stored size: 572 Bytes
Contents
window.keys = ALT: false SHIFT: false x: false y: false z: false $(window).on 'keydown', (e) -> switch e.keyCode when 16 then window.keys.SHIFT = true when 18 then window.keys.ALT = true when 88 then window.keys.x = true when 89 then window.keys.y = true when 90 then window.keys.z = true $(window).on 'keyup', (e) -> switch e.keyCode when 16 then window.keys.SHIFT = false when 18 then window.keys.ALT = false when 88 then window.keys.x = false when 89 then window.keys.y = false when 90 then window.keys.z = false
Version data entries
19 entries across 19 versions & 1 rubygems