Skip to content

Instantly share code, notes, and snippets.

@ionoy
Created October 3, 2012 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ionoy/3828887 to your computer and use it in GitHub Desktop.
Save ionoy/3828887 to your computer and use it in GitHub Desktop.
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