Resolves: #i124008# listbox entry's are selected automatically...

on mouse over instead of mouse click

(cherry picked from commit ae97dcb5b8d2dead81b007c5c71daf608f0c7bc3)

Change-Id: Ib1ce0db60785ddc96473ef4ce88b578287956164
This commit is contained in:
Steve Yin
2014-01-28 09:55:07 +00:00
committed by Caolán McNamara
parent 7be0997a02
commit 05534b5523
5 changed files with 5 additions and 2 deletions

View File

@@ -110,6 +110,7 @@ void VCLXAccessibleBox::ProcessWindowEvent (const VclWindowEvent& rVclWindowEven
{
switch ( rVclWindowEvent.GetId() )
{
case VCLEVENT_DROPDOWN_SELECT:
case VCLEVENT_LISTBOX_SELECT:
case VCLEVENT_LISTBOX_FOCUSITEMCHANGED:

View File

@@ -345,6 +345,7 @@ void VCLXAccessibleList::ProcessWindowEvent (const VclWindowEvent& rVclWindowEve
{
switch ( rVclWindowEvent.GetId() )
{
case VCLEVENT_DROPDOWN_SELECT:
case VCLEVENT_LISTBOX_SELECT:
if ( !m_bDisableProcessEvent )
UpdateSelection_Impl_Acc(b_IsDropDownList);

View File

@@ -151,6 +151,7 @@ namespace com { namespace sun { namespace star {
#define VCLEVENT_ITEM_EXPANDED 1174
#define VCLEVENT_ITEM_COLLAPSED 1175
#define VCLEVENT_DROPDOWN_PRE_OPEN 1176
#define VCLEVENT_DROPDOWN_SELECT 1177
#define VCLEVENT_LISTBOX_FOCUSITEMCHANGED 1180
// VclMenuEvent

View File

@@ -463,7 +463,7 @@ IMPL_LINK_NOARG(ComboBox, ImplSelectHdl)
IMPL_LINK( ComboBox, ImplListItemSelectHdl, void*, EMPTYARG )
{
ImplCallEventListeners( VCLEVENT_LISTBOX_SELECT );
ImplCallEventListeners( VCLEVENT_DROPDOWN_SELECT );
return 1;
}

View File

@@ -249,7 +249,7 @@ IMPL_LINK( ListBox, ImplFocusHdl, void *, nPos )
IMPL_LINK( ListBox, ImplListItemSelectHdl, void*, EMPTYARG )
{
ImplCallEventListeners( VCLEVENT_LISTBOX_SELECT );
ImplCallEventListeners( VCLEVENT_DROPDOWN_SELECT );
return 1;
}