Thomas Broyer wrote: > No, I think it's a problem with your DOM element not being > "focusable" (in Firefox, Opera and IE it's just a matter of giving it > a tabindex, but in Safari 3 and Chrome 1.0 you have to do a tricky > thing with a hidden text box; it'll be fixed in Safari 4 and Chrome > 2.0 though). > If I were you, I'd extend FocusPanel which handles all this for you; > but in your case this means that either Evento doesn't extend > ResizableDraggablePanel (and you'll have to refactor your code within > a helper class and duplicate a bit of code in the two classes) or > ResizableDraggablePanel extends FocusPanel (even if it doesn't need to > handle focus events and be focusable). If you feel plucky, you can > also copy some bits from FocusPanel (the bits that use FocusImpl) to > make your Evento be focusable without having to break inheritance or > make the base class a FocusPanel itself. > > First of all thank for your answer. It really put order in my ideas.
I tried both ways (ResizableDraggablePanel extends FocusPanel / copying the necessary methods from FocusPanel). The results are the same: In Firefox it's all perfect. In Chrome and Safari, the element is getting keyboard focus, but it doesn't trigger the onFocus/onLostFocus methods. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
