  | |  | Please help! trapping keyboard combo on Mac OSX | Please help! trapping keyboard combo on Mac OSX
2004-02-20 - By Scott Blanchard
Back I am literally about to throw my mac across the room. I have a function that
should fire when the user has typed CTRL+8 on the keyboard. This works
perfectly on the PC, however, I cannot get it to fire on Mac in any web
browser. I need to have this work in Mozilla and firefox on the Mac.
If anyone has any suggestions, please help. I 'm running out of time...
Here 's the function I am using,
window.document.onkeydown = checkHandles;
function
checkHandles(e){e=e||window.event;if((e.ctrlKey)&&(e.keyCode==56)){alert( "yes.
Thank goodness it worked!!! ")}}
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __
Say “good-bye?to spam, viruses and pop-ups with MSN Premium -- free trial
offer! http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104861
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |