diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-02-21 16:34:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-02-21 19:56:41 +0000 |
commit | b05104facac18f40f34043be304f616530fc3a22 (patch) | |
tree | 2914939052205026cb3b96bcff16c7cb967287e1 /include | |
parent | 87d756f3f5dfb55ee9edbcd5349f8107ee5945eb (diff) |
Resolves: tdf#148047 don't move focus if dropdown is active
a bit of a corner case, for the popover gtk sets the focus in two
steps, one to null, then to the final widget, not in just one step.
On seeing the interim null case we assume that focus was lost and
set it to the parent, which causes the popover to be dismissed
while it's still appearing. Workaround this by ignoring the grab
to parent while the popover is active.
Change-Id: I1bdef51731bf714de2df93fbe6694e9ed3e366d3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147411
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/fillctrl.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/svx/fillctrl.hxx b/include/svx/fillctrl.hxx index 978f63e359e8..1a781713dbaa 100644 --- a/include/svx/fillctrl.hxx +++ b/include/svx/fillctrl.hxx @@ -95,6 +95,7 @@ private: void SetOptimalSize(); virtual void DataChanged(const DataChangedEvent& rDCEvt) override; + virtual void GetFocus() override; static void ReleaseFocus_Impl(); |