var alt,ctrl,shft
if (is.ie){
alt = (e.altKey || e.altLeft)?true:false
ctrl = (e.ctrlKey || e.ctrlLeft)?true:false
shft = (e.shiftKey || e.shiftLeft)?true:false
}
if (is.ns){
var m = e.modifiers
alt = (m==1 || m==3 || m==5 || m==7)?true:false
ctrl = (m==2 || m==3 || m==6 || m==7)?true:false
shft = (m==4 || m==5 || m==6 || m==7)?true:false
}
Can be changed to the following:
if (is.ie||is.ns5){
this.altKey
= (e.altKey || e.altLeft)
this.ctrlKey =
(e.ctrlKey || e.ctrlLeft)
this.shiftKey = (e.shiftKey
|| e.shiftLeft)
}
if (is.ns4){
var m = e.modifiers
this.altKey
= (m==1 || m==3 || m==5 || m==7)
this.ctrlKey =
(m==2 || m==3 || m==6 || m==7)
this.shiftKey = (m==4
|| m==5 || m==6 || m==7)
}
It makes the code simpler and also adds support for NS6. Hope
this helps.
--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-dev
