Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fix allow only left/middle click to open editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Feb 15, 2012
1 parent c479c0c commit dad5e08
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -36,6 +36,7 @@

import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.NativeEvent;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.MouseDownEvent;
Expand Down Expand Up @@ -234,7 +235,7 @@ public void renderRowValue(TransUnit rowValue, ColumnDefinition<TransUnit, Trans
@Override
public void onMouseDown(MouseDownEvent event)
{
if (!isReadOnly)
if (!isReadOnly && event.getNativeButton() == NativeEvent.BUTTON_LEFT)
{
eventBus.fireEvent(new OpenEditorEvent(rowIndex));
}
Expand Down

0 comments on commit dad5e08

Please sign in to comment.