diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-02-15 20:16:44 +0000 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2021-02-17 10:59:40 +0100 |
commit | 97a1d170b5f45c6cf9fc2c56dc4526d0e3f8423a (patch) | |
tree | a288c3c26e70e13863bc6d241a22ae4002cb3454 /include | |
parent | 640951c1ac64ff0f7ab2c033c9a2f00ccf0363dc (diff) |
tdf#140387 grab focus to first panel widget on panel gaining focus
otherwise focus is getting lost in these currently mixed vcl+gtk widget
panels.
Change-Id: I6488ddfc98afdedb55bb3217f3877e96258dd65a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110956
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/sidebar/PanelLayout.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sfx2/sidebar/PanelLayout.hxx b/include/sfx2/sidebar/PanelLayout.hxx index e8ee96ae8f44..0e9e56875ff1 100644 --- a/include/sfx2/sidebar/PanelLayout.hxx +++ b/include/sfx2/sidebar/PanelLayout.hxx @@ -25,6 +25,7 @@ protected: std::unique_ptr<weld::Builder> m_xBuilder; VclPtr<vcl::Window> m_xVclContentArea; std::unique_ptr<weld::Container> m_xContainer; + weld::Widget* m_pInitialFocusWidget; private: Idle m_aPanelLayoutIdle; @@ -40,6 +41,7 @@ public: virtual void dispose() override; virtual Size GetOptimalSize() const override; + virtual void GetFocus() override; virtual void setPosSizePixel(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, PosSizeFlags nFlags = PosSizeFlags::All) override; virtual void queue_resize(StateChangedType eReason = StateChangedType::Layout) override; virtual bool EventNotify(NotifyEvent& rNEvt) override; |