summaryrefslogtreecommitdiff
path: root/vcl/source/app/salvtables.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-12-09 17:28:00 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-12-09 20:23:06 +0100
commit5454d9fc5ed40ed43a8b961b5cb39571ab9df584 (patch)
tree053e3251f813353589b4e49443ced35aa9de3949 /vcl/source/app/salvtables.cxx
parenta51e981a1dbf51a25def24d306e075eeeefecba8 (diff)
tdf#138778 add has_child_focus which considers a related popup a 'child'
Change-Id: Iab23e399f2650ece702fb1f62d1387acca472b42 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107499 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/app/salvtables.cxx')
-rw-r--r--vcl/source/app/salvtables.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index ccc3757e6718..1289848b7ac5 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -271,6 +271,11 @@ bool SalInstanceWidget::has_focus() const { return m_xWidget->HasFocus(); }
bool SalInstanceWidget::is_active() const { return m_xWidget->IsActive(); }
+bool SalInstanceWidget::has_child_focus() const
+{
+ return m_xWidget->HasChildPathFocus(true);
+}
+
void SalInstanceWidget::set_has_default(bool has_default)
{
m_xWidget->set_property("has-default", OUString::boolean(has_default));