diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-04-26 09:34:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-04-26 09:36:21 +0100 |
commit | 6329ad39832e6d8101b8384e6d96ca281a303d37 (patch) | |
tree | 5bc896b9a36ce1ca3c354cf7fc6fe4a4eca25cac | |
parent | 2130b6aaa9e274a41e3280056d7d049a33ca270c (diff) |
Resolves: fdo#47733 keyboard navigation broken for SvxSimpleTableContainer
-rw-r--r-- | svx/inc/svx/simptabl.hxx | 1 | ||||
-rw-r--r-- | svx/source/dialog/simptabl.cxx | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/svx/inc/svx/simptabl.hxx b/svx/inc/svx/simptabl.hxx index 1340b0b35e9d..9e7a0692f1fe 100644 --- a/svx/inc/svx/simptabl.hxx +++ b/svx/inc/svx/simptabl.hxx @@ -54,6 +54,7 @@ public: void SetTable(SvxSimpleTable* pTable); virtual void SetSizePixel(const Size& rNewSize); + virtual void GetFocus(); }; class SVX_DLLPUBLIC SvxSimpleTable : public SvHeaderTabListBox diff --git a/svx/source/dialog/simptabl.cxx b/svx/source/dialog/simptabl.cxx index d33c625a5df9..cab9d3f9097f 100644 --- a/svx/source/dialog/simptabl.cxx +++ b/svx/source/dialog/simptabl.cxx @@ -76,6 +76,13 @@ void SvxSimpleTableContainer::SetSizePixel(const Size& rNewSize ) m_pTable->UpdateViewSize(); } +void SvxSimpleTableContainer::GetFocus() +{ + Control::GetFocus(); + if (m_pTable) + m_pTable->GrabFocus(); +} + // SvxSimpleTable ------------------------------------------------------------ SvxSimpleTable::SvxSimpleTable(SvxSimpleTableContainer& rParent, WinBits nBits): |