Created
October 3, 2012 18:36
-
-
Save ionoy/3828887 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
handle mousedown(down) { | |
handle mousemove(move) until mouseup { | |
.... | |
} | |
} | |
handle keydown(k0) { | |
if(k0 == 'a') { | |
handle once keydown(k1) { | |
if(k1 == 'b') { | |
handle once keydown(k2) { | |
if(k2 == 'c') { | |
alert('hooray!'); | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment