Update of /cvsroot/dynapi/dynapi/src/lib/dynapi/api
In directory usw-pr-cvs1:/tmp/cvs-serv28458
Modified Files:
events.js
Log Message:
modifier keys should now also work under NS6
and removed the parentComponent part in invokeevent (this property doesn't exist, so
will also never be called)
Index: events.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/api/events.js,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** events.js 2001/02/07 18:13:58 1.18
--- events.js 2001/02/11 16:19:42 1.19
***************
*** 41,50 ****
this.button = b;
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;
}
! else if (is.ns){
var m = e.modifiers;
alt = (m==1 || m==3 || m==5 || m==7)?true:false;
--- 41,50 ----
this.button = b;
var alt,ctrl,shft;
! if (is.ie || is.ns5){
alt = (e.altKey || e.altLeft)?true:false;
ctrl = (e.ctrlKey || e.ctrlLeft)?true:false;
shft = (e.shiftKey || e.shiftLeft)?true:false;
}
! if (is.ns4){
var m = e.modifiers;
alt = (m==1 || m==3 || m==5 || m==7)?true:false;
***************
*** 162,170 ****
}
if (is.ns4 && is.platform=="other" && type=="mouseup")
this.invokeEvent("click",e);
- if (this.parentComponent) {
- if (e) e.src=this.parentComponent;
- else e=new DynEvent(type,this);
- this.parentComponent.invokeEvent(type,e);
- }
};
DynDocument.prototype._e=new MouseEvent()
--- 162,165 ----
_______________________________________________
Dynapi-CVS mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-cvs