Re: DOM.eventGetCurrentEvent() does not work on Chrome and Safari

2009-03-10 Thread Sumit Chandel
Hi maszuari, On which widget were you listening for the onMouseDown event? I tried running the code snippet below with a Button in GWT 1.6 milestone 2, and the issue looks to be solved there in that comparing the button down event to the BUTTON_LEFT constant (still with a value of 1) returns true o

Re: DOM.eventGetCurrentEvent() does not work on Chrome and Safari

2009-03-06 Thread maszuari
I know why my code did not work on Chrome and Safari. When I pressed left button on my mouse, the DOM.eventGetButton(event) would return -1 but IE and Firefox3 would return 1. But if I pressed right button on my mouse, all browsers would return 2. On Mar 3, 5:13 pm, maszuari wrote: > What I wan

DOM.eventGetCurrentEvent() does not work on Chrome and Safari

2009-03-03 Thread maszuari
What I want to do is, whenever user pressed left click mouse the browser will go to different page. If user pressed right click mouse, it won't go anywhere or do anything. I use MouseListener to get mouse events and DOM.eventGetCurrentEvent(). Below are snippet of my code: public void onMouseDown