GWT:Unable to detect right clicks on customized tab panel.
Joined: Oct 11, 2007
I am working on a customized tab panel widget which is extending the TabPanel class in Google Web Toolkit. One of the requirements is that right clicks on the tabs should be detected so that i could display my own customized context menu. But, i am not able to detect the right clicks on the tab panels. Heres a summary of the steps i have taken:
1. In the default constructor for the TabPanelModified class, I am sinking the "on mouse down" event using this.sinkEvents(Event.ONMOUSEDOWN). 2. I have also disabled the default context menu provided by the browser using the method "disableContextMenu", in the default constructor itself. The definition for this particular method is as follows: