Use Cmd-click, not Apply-click, to select items in wxVListBox.
Using Apple key here under Mac was unexpected, we should use Cmd which corresponds to Ctrl used under the other platforms and which is already mapped to it by wxKeyboardState::ControlDown(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -696,13 +696,7 @@ void wxVListBox::OnLeftDown(wxMouseEvent& event)
|
||||
if ( event.ShiftDown() )
|
||||
flags |= ItemClick_Shift;
|
||||
|
||||
// under Mac Apple-click is used in the same way as Ctrl-click
|
||||
// elsewhere
|
||||
#ifdef __WXMAC__
|
||||
if ( event.MetaDown() )
|
||||
#else
|
||||
if ( event.ControlDown() )
|
||||
#endif
|
||||
flags |= ItemClick_Ctrl;
|
||||
|
||||
DoHandleItemClick(item, flags);
|
||||
|
Reference in New Issue
Block a user