gwtproject / gwt

GWT Open Source Project
http://www.gwtproject.org
1.52k stars 373 forks source link

ContextMenuHandler and CellBrowser #6088

Closed dankurka closed 9 years ago

dankurka commented 9 years ago

Originally reported on Google Code with ID 6089

Found in GWT Release (e.g. 1.5.3, 1.6 RC): GWT 2.2

Encountered on OS / Browser (e.g. WinXP, IE6-7, FF3):  OS/Browser independent

Detailed description (please be as specific as possible):
There is no way to find a CellBrowser's data item at the point of a right-click and
pop-up a context-dependent menu in ContextMenuHandler.onContextMenu()

Shortest code snippet which demonstrates issue (please indicate where
actual result differs from expected result): none

Workaround if you have one: none

Links to relevant GWT Developer Forum posts:

Reported by yuriry on 2011-03-01 06:11:43

dankurka commented 9 years ago
This is true for any event, but each cell can listen to the contextmenu event, and it
would then be passed the data item in its onBrowserEvent method.

Reported by t.broyer on 2011-03-01 09:37:49

dankurka commented 9 years ago
Listening for contextmenu and preventDefault() is perfect Thomas, thank you very much!
Sorry I should have investigated this option before opening an issue.

Reported by yuriry on 2011-03-01 15:02:07

dankurka commented 9 years ago

Reported by dankurka@google.com on 2013-05-27 03:55:58