summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-12-12 12:49:58 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-12-12 13:29:27 +0000
commit7d34a702136765cab15edb47aecae9181edd2802 (patch)
tree40e16587d704a44c2be6593df52cb1aa11bd111a /sw
parent4f97f17d8a86546465ebdc0fa39b5c453ad60781 (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 (cherry picked from commit 166d8257979aac6775319a9e1f305bc94df97e29) Conflicts: svx/source/dialog/fontlb.cxx Change-Id: I7d964bae6b84184ccbc4652d66cf3d2637566405
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/cctrl/actctrl.cxx8
-rw-r--r--sw/source/ui/misc/numberingtypelistbox.cxx2
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;
}