Grid doesn't get FocusOut when it actually loses focus [message #598160] |
Thu, 03 September 2009 11:32 |
blutkind Messages: 25 Registered: July 2009 |
Junior Member |
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02789 seconds