...

View Full Version : Call function when key combination is pressed?



quadrant6
10-31-2006, 09:03 PM
I'm wondering whether it's possible to call a function when a key combination is pressed on the keyboard:

something like



function doStuff(keys){
if(keys == 'Ctrl + a'){
doThis();

} else if(keys = 'Ctrl + U'){
doThat();
}
}


Anyone know if/how this could be done?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum