View Full Version : [FIXED] TreeEvent.isRightClick() doesn't work properly

25 Jun 2008, 11:39 AM

I'm not sure but it looks like TreeEvent.isRightClick() method doesn't work properly on WinXP with MSIE 6.0/SP2 - it elways returns 'false' even though it was really a 'right click' on TreeItem in Tree component.

My code adds two event listeners on Tree widget as follows:

tree.addListener(Events.SelectionChange, new Listener<TreeEvent>() {
public void handleEvent(TreeEvent te) {
// This is executed on right-click and also on normal (left) click
boolean isRightClick = te.isRightClick(); // always false

tree.addListener(Events.ContextMenu, new Listener<TreeEvent>() {
public void handleEvent(TreeEvent be) {
// This is executed properly on right-click only
The problem is that both right-click and left-click on TreeItems in my Tree invoke the "Events.SelectionChange" listener and I don't know how to distinguish between the right-click and left-click.

Any help is appreciated.

I use Ext-GWT 1.0.RC1 with MSIE 6.0/SP2.

26 Jun 2008, 2:09 PM
The DOM Event was not set on the ComponentEvent, and therefore isRightClick always returned false. Fix is in SVN.