Me again...
-AJ
-- This code seems to work (and I'm posting it here in case it helps someone else). If anyone thinks this will cause issues somewhere else, and is kind enough to respond, I appreciate it!
// trap the shift-click || ctrl-click launch of a new browser window. cellList.addCellPreviewHandler(new CellPreviewEvent.Handler() { @Override public void onCellPreview(final CellPreviewEvent event) { NativeEvent evt = event.getNativeEvent();
//shift-click || ctrl-click if ((BrowserEvents.CLICK.equals(evt.getType())) && ((evt.getShiftKey()) || (evt.getCtrlKey())) ) { //Window.alert("Shift-Click Event");
event.setCanceled(true); event.getNativeEvent().stopPropagation(); event.getNativeEvent().preventDefault(); } } });
-AJ
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment