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 /sw | |
parent | 0c870ab35f0648ac5e87adc84ad4c711c4774330 (diff) |
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 'sw')
-rw-r--r-- | sw/source/ui/cctrl/actctrl.cxx | 8 | ||||
-rw-r--r-- | sw/source/ui/misc/numberingtypelistbox.cxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/ui/cctrl/actctrl.cxx b/sw/source/ui/cctrl/actctrl.cxx index 010f1a9e8e2c..d930a46a6a55 100644 --- a/sw/source/ui/cctrl/actctrl.cxx +++ b/sw/source/ui/cctrl/actctrl.cxx @@ -51,14 +51,14 @@ long NumEditAction::Notify( NotifyEvent& rNEvt ) } NoSpaceEdit::NoSpaceEdit( Window* pParent, const ResId& rResId) - : Edit(pParent, rResId), - sForbiddenChars(rtl::OUString(" ")) + : Edit(pParent, rResId) + , sForbiddenChars(rtl::OUString(" ")) { } NoSpaceEdit::NoSpaceEdit(Window* pParent) - : Edit(pParent), - sForbiddenChars(rtl::OUString(" ")) + : Edit(pParent, WB_BORDER|WB_TABSTOP) + , sForbiddenChars(rtl::OUString(" ")) { } diff --git a/sw/source/ui/misc/numberingtypelistbox.cxx b/sw/source/ui/misc/numberingtypelistbox.cxx index 83660ccc76e0..13445525ea8f 100644 --- a/sw/source/ui/misc/numberingtypelistbox.cxx +++ b/sw/source/ui/misc/numberingtypelistbox.cxx @@ -70,7 +70,7 @@ bool SwNumberingTypeListBox::set_property(const rtl::OString &rKey, const rtl::O extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSwNumberingTypeListBox(Window *pParent, VclBuilder::stringmap &) { - SwNumberingTypeListBox *pListBox = new SwNumberingTypeListBox(pParent, WB_LEFT|WB_DROPDOWN|WB_VCENTER|WB_3DLOOK); + SwNumberingTypeListBox *pListBox = new SwNumberingTypeListBox(pParent, WB_LEFT|WB_DROPDOWN|WB_VCENTER|WB_3DLOOK|WB_TABSTOP); pListBox->EnableAutoSize(true); return pListBox; } |