On 16 sep, 12:35, redjhawk <
jorges...@gmail.com> wrote:
> Have you tried with event.preventDefault() ?
>
> On Sep 16, 10:35 am, Christophe
>
> <
christophe.march...@contactoffice.net> wrote:
> > Ok, that's work. I can display my popup menu. But it doesn't prevent
> > default browser popup menu :
http://xemelios.org/private/many-menus.png
>
> > To stop propagation, I've tried this without any success :
> > public void onBrowserEvent(Cell.Context context, final Element
> > parent, SafeHtml value, final NativeEvent event,
> > ValueUpdater<SafeHtml> valueUpdater) {
> > event.stopPropagation();
> > ...
>
> > Any idea ?
>
> > Thanks in advance,
> > Christophe
>
> > On 15 sep, 17:23, Thomas Broyer <
t.bro...@gmail.com> wrote:
>
> > > Where is this sinkEvents from?
>
> > > class SafeHtmlCellWithContextMenu<T> extends SafeHtmlCell {
> > > public Set<String> getConsumedEvents() { return
> > > Collections.singleton("contextmenu"); }
>
> > > public void onBrowserEvent(Cell.Context context, Element parent, SafeHtml
> > > value, NativeEvent event, ValueUpdater<SafeHtml> valueUpdater) {
> > > // here, event.getType() should be "contextmenu"
> > > }
>
> > > }
>