From ac9b3a4c37c599a1117b37e6637d69fa243910e5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 23 Dec 2014 09:50:04 +0000 Subject: [PATCH] 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 --- src/generic/vlbox.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/generic/vlbox.cpp b/src/generic/vlbox.cpp index e277070b3d..0834212b7e 100644 --- a/src/generic/vlbox.cpp +++ b/src/generic/vlbox.cpp @@ -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);