Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- glow.events.addListener(document, "keydown",
- (function() {
- var kkeys = [];
- return function(e) {
- kkeys.push(e.keyCode);
- if (kkeys.length > 10) kkeys.shift();
- if (("["+kkeys.join(",")+"]").indexOf("[38,38,40,40,37,39,37,39,66,65]") > -1) {
- alert("glonami!");
- kkeys = [];
- }
- }
- })()
- );
Add Comment
Please, Sign In to add comment