diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2025-01-23 13:00:29 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2025-01-24 07:36:58 +0100 |
commit | 9391dd417ec20e033c6d61cf41c9945aa039ce0a (patch) | |
tree | 3caa20c1ed127adc578e137835847980cd0711ee /toolkit/source/controls/table/tablecontrol.cxx | |
parent | 17bd739038c18b99f61e341fbb6b93495efb4eb3 (diff) |
toolkit: Move DefaultInputHandler::{Get,Lose}Focus logic to only callers
Both always return false, so Control::{Get,Lose}Focus
always gets called.
Change-Id: If26132d68cebfb7930f12418480480ddd3cb9333
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180631
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
Diffstat (limited to 'toolkit/source/controls/table/tablecontrol.cxx')
-rw-r--r-- | toolkit/source/controls/table/tablecontrol.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/toolkit/source/controls/table/tablecontrol.cxx b/toolkit/source/controls/table/tablecontrol.cxx index 94810d138ed5..2b6afc18d863 100644 --- a/toolkit/source/controls/table/tablecontrol.cxx +++ b/toolkit/source/controls/table/tablecontrol.cxx @@ -78,15 +78,19 @@ namespace svt::table void TableControl::GetFocus() { - if (!m_pImpl || !DefaultInputHandler::GetFocus(*m_pImpl)) - Control::GetFocus(); + if (m_pImpl) + m_pImpl->showCursor(); + + Control::GetFocus(); } void TableControl::LoseFocus() { - if (!m_pImpl || !DefaultInputHandler::LoseFocus(*m_pImpl)) - Control::LoseFocus(); + if (m_pImpl) + m_pImpl->hideCursor(); + + Control::LoseFocus(); } |