Related: tdf#137016 check if subcontrol has the focus
Change-Id: I632188bc0512c9d8935bd0898c96e066881ebeb1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103523 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
82ae5d1481
commit
70866d4663
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ namespace dbaui
|
|||
|
||||
bool ORelationControl::PreNotify(NotifyEvent& rNEvt)
|
||||
{
|
||||
if (rNEvt.GetType() == MouseNotifyEvent::LOSEFOCUS && !HasChildPathFocus() )
|
||||
if (rNEvt.GetType() == MouseNotifyEvent::LOSEFOCUS && !HasChildPathFocus() && !ControlHasFocus())
|
||||
PostUserEvent(LINK(this, ORelationControl, AsynchDeactivate), nullptr, true);
|
||||
else if (rNEvt.GetType() == MouseNotifyEvent::GETFOCUS)
|
||||
PostUserEvent(LINK(this, ORelationControl, AsynchActivate), nullptr, true);
|
||||
|
|
Loading…
Reference in a new issue