diff options
-rw-r--r-- | include/svtools/valueset.hxx | 2 | ||||
-rw-r--r-- | svtools/source/control/valueset.cxx | 10 |
2 files changed, 2 insertions, 10 deletions
diff --git a/include/svtools/valueset.hxx b/include/svtools/valueset.hxx index 186265404131..98e701800f04 100644 --- a/include/svtools/valueset.hxx +++ b/include/svtools/valueset.hxx @@ -86,8 +86,6 @@ WB_VSCROLL A scrollbar will be always shown. The visible number of lines have to be specified with SetLineCount() if this flag is set. WB_BORDER A border will be drawn around the window. -WB_NOPOINTERFOCUS The focus won't be gathered, if the control was pressed by - the mouse. WB_TABSTOP It is possible to jump into the ValueSet with the tab key. WB_NOTABSTOP It is not possible to jump into the ValueSet with the tab key. diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index c2baa2d5a483..75665ddd2654 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -486,15 +486,9 @@ bool ValueSet::MouseButtonDown( const MouseEvent& rMouseEvent ) if (rMouseEvent.GetClicks() == 1) { if (pItem) - { SelectItem(pItem->mnId); - bConsumed = true; - } - if (!(GetStyle() & WB_NOPOINTERFOCUS)) - { - GrabFocus(); - bConsumed = true; - } + GrabFocus(); + bConsumed = true; } else if (pItem && rMouseEvent.GetClicks() == 2) { |