[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.nebula] Grid doesn't get FocusOut when it actually loses focus

Hi,

We use Grid in RCP application. We need to perform certain actions when the view with the grid loses focus. I've added a FocusOut listener, but it doesn't always work. On the other hand, Deactivate listener does work to often. Let me describe in examples:
Focus is in the grid which resides in a separate view. We open editor in a cell, then
- click on another view that holds a tree (kind-of project explorer). The editor closes, focus goes to the tree but the grid doesn't get FocusOut event. It gets Deactivate event though
- but if resize the view, editor stays open, grid doesn't get FocusOut event but gets Deactivate event.
I think it's not a correct behavior. In first case, both FocusOut and Deactivate should be caught, in second - none of them.
I think it is possible to use a listener on the view instead, but I'd like to encapsulate the logic inside a widget, not exposing it to the view it resides in.