summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-08 19:30:32 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-08 22:05:32 +0200
commit94f4bdb910a9db49016ea23cd0086f70a1468363 (patch)
tree029b024019b9e975cb999eaaa2e5af48e737cbf7 /vcl/source
parent7e66a473fa147546e5fb96c95a86ae5ec6f45fa5 (diff)
expand to cover subwidgets
Change-Id: Ib0765e6a38c6dc6cdb32eefc013b432f3cf36db2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98386 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/app/salvtables.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 4121165b37a5..893a7f4f0b49 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -596,7 +596,7 @@ void SalInstanceWidget::HandleMouseEventListener(VclSimpleEvent& rEvent)
bool SalInstanceWidget::HandleKeyEventListener(VclWindowEvent& rEvent)
{
// we get all key events here, ignore them unless we have focus
- if (!has_focus())
+ if (!m_xWidget->HasChildPathFocus())
return false;
if (rEvent.GetId() == VclEventId::WindowKeyInput)
{