|
Hi Cameron, Just tried the code in SVN and I still not able to detect the modifier keys. I have tried both getAltKey() and casting to org.apache.batik.dom.events.DOMMouseEvent to use getModifierState(). ....... EventTarget t = (EventTarget)elt; t.addEventListener("click", new OnMouseClick(theCanvas), false); ....... .. public class OnMouseClick implements EventListener { public void handleEvent(org.w3c.dom.events.Event evt) { org.apache.batik.dom.events.DOMMouseEvent mevt = (org.apache.batik.dom.events.DOMMouseEvent)evt; // if (evt.getAltKey()) if ( mevt.getModifierState("Alt")) { } .... } } Perhaps I am doing something wrong. Patrick Cameron McCormack wrote: Hi Patrick. Patrick Egan: Important - This e-mail and the information that it contains may be confidential, legally privileged and protected by law. Access by the intended recipient only is authorised. Any liability (in negligence or otherwise) arising from any third party acting, or refraining from acting, on any information contained in this e-mail is hereby excluded. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Copyright in this e-mail and attachments created by us belongs to the author and also asserts the right to be identified as such and object to any misuse. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] |
- Re: DOM level 3 MouseEvent Cameron McCormack
- AbstractImageZoomInteractor Urs Reupke
- Re: DOM level 3 MouseEvent Patrick Egan
- Re: DOM level 3 MouseEvent Cameron McCormack
- Re: DOM level 3 MouseEvent Patrick Egan
- Re: DOM level 3 MouseEvent Patrick Egan
