diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-12-12 12:49:58 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-12-12 13:27:12 +0000 |
commit | 166d8257979aac6775319a9e1f305bc94df97e29 (patch) | |
tree | 780a7ba43ff9b8ba1f449238d23d2e62b9c8777a /svx | |
parent | uncalled destructor (diff) | |
download | core-166d8257979aac6775319a9e1f305bc94df97e29.tar.gz core-166d8257979aac6775319a9e1f305bc94df97e29.zip |
Resolves: fdo#57469 allow tab to traverse into custom widgets
The magic WB_TABSTOP bit is the one that allows a widget to be accepted as a
candidate for getting focus when pressing tab
Change-Id: I7d964bae6b84184ccbc4652d66cf3d2637566405
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/charmap.cxx | 2 | ||||
-rw-r--r-- | svx/source/dialog/fontlb.cxx | 2 | ||||
-rw-r--r-- | svx/source/dialog/langbox.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx index 817f2ddf02e4..42b6417703bf 100644 --- a/svx/source/dialog/charmap.cxx +++ b/svx/source/dialog/charmap.cxx @@ -66,7 +66,7 @@ SvxShowCharSet::SvxShowCharSet(Window* pParent, const ResId& rResId) } SvxShowCharSet::SvxShowCharSet(Window* pParent) - : Control(pParent) + : Control(pParent, WB_TABSTOP) , m_pAccessible(NULL) , aVscrollSB( this, WB_VERT) { diff --git a/svx/source/dialog/fontlb.cxx b/svx/source/dialog/fontlb.cxx index 1e6ceb8f8490..131ca43dc0d3 100644 --- a/svx/source/dialog/fontlb.cxx +++ b/svx/source/dialog/fontlb.cxx @@ -99,7 +99,7 @@ SvxFontListBox::SvxFontListBox(Window* pParent, WinBits nStyle) extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxFontListBox(Window *pParent, VclBuilder::stringmap &) { - return new SvxFontListBox(pParent, 0); + return new SvxFontListBox(pParent, WB_TABSTOP); } void SvxFontListBox::InsertFontEntry( const String& rString, const Font& rFont, const Color* pColor ) diff --git a/svx/source/dialog/langbox.cxx b/svx/source/dialog/langbox.cxx index 495ebd056ddd..c36517d553f3 100644 --- a/svx/source/dialog/langbox.cxx +++ b/svx/source/dialog/langbox.cxx @@ -139,7 +139,7 @@ SvxLanguageBox::SvxLanguageBox( Window* pParent, WinBits nBits, sal_Bool bCheck extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxLanguageBox(Window *pParent, VclBuilder::stringmap &) { - SvxLanguageBox *pListBox = new SvxLanguageBox(pParent, WB_LEFT|WB_DROPDOWN|WB_VCENTER|WB_3DLOOK); + SvxLanguageBox *pListBox = new SvxLanguageBox(pParent, WB_LEFT|WB_DROPDOWN|WB_VCENTER|WB_3DLOOK|WB_TABSTOP); pListBox->EnableAutoSize(true); return pListBox; } |