Anybody home? Or maybe that someone could explain me why I don't have any trouble with Chrome but I have with IE8 with the Google Chrome Frame activated.
I think that I'm not the only one with this kind of problem. Please gimme advices. On 21 mai, 11:38, JC <realje...@gmail.com> wrote: > Well, let's try another question. > > How in IE8 with GCF activated may I block a keyboard touch (ie F1), > actually it does open the software help but the IE help too... > > Because it's the only browser that have this problem. > > On 19 mai, 22:46, JC <realje...@gmail.com> wrote: > > > Bump :-} > > > Not even some clues? > > > I did read several posts, but didn't found a solution. > > > Thanks for your help! > > > On 19 mai, 17:00, JC <realje...@gmail.com> wrote: > > > > Hi. > > > > I have a problem only withIE8with the GCF plugin. > > > > When I press, for example F1, the help of IE appear. I had this > > > problem with Chrome but I solved by adding this: > > > > In a class who extend EventHandler: > > > > Event.addNativePreviewHandler(new NativePreviewHandler() { > > > public void onPreviewNativeEvent(NativePreviewEvent event) > > > { > > > > transversalEventHandler.handleNativeEvent(event.getNativeEvent()); > > > > } > > > }); > > > > And then in my handler: > > > > public void handleNativeEvent(NativeEvent event) { > > > > Event e = ((Event) event); > > > if (e.getTypeInt() != e.ONKEYPRESS) { > > > int keyCode = event.getKeyCode(); > > > switch (keyCode) { > > > case JTKeyCodes.F1: > > > stopEvent(e); > > > if (event.getShiftKey()) { > > > fireS2iWebEvent("F13"); > > > } else { > > > JTEventBus.getInstance().fireEvent(new > > > HelpEvent()); > > > } > > > break; > > > } > > > } > > > } > > > > The stopEvent() is : > > > > private void stopEvent(NativeEvent event) { > > > event.preventDefault(); > > > event.stopPropagation(); > > > // Did try this... ((Event) event).cancelBubble(true); > > > // Did try this... DOM.eventCancelBubble(((Event) event), > > > true); > > > } > > > > But it's doesn't work :-{ > > > > Any idea? > > > > Thanks a lot! > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.