function onload() {
document.captureEvents(Event.KEYDOWN);
document.onkeydown = setkey;
}
function setkey(event){
if (true == event.ctrlKey)
} else if (true == event.metaKey) { // This is Apple key
} else {
return;
}
...
}
Best,
Xia
On Jun 28, 2005, at 10:30 PM, Matt Sephton wrote:
Hi,
Does anybody have example code (in an email or in an existing
widget) of how to read the modifier keys (Control, Alt, Apple, Shift)?
Thanks,
matt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/dashboard-dev/xia%
40horneddragon.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden