From: Stefan Csomor Date: Sun, 31 Jan 2010 14:42:51 +0000 (+0000) Subject: avoiding catching incorrect shortcuts, see #11676 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f0a9f45635e9617e0804d9726b24596e77305bf1 avoiding catching incorrect shortcuts, see #11676 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/textctrl_osx.cpp b/src/osx/textctrl_osx.cpp index af08390bfa..4262ff2301 100644 --- a/src/osx/textctrl_osx.cpp +++ b/src/osx/textctrl_osx.cpp @@ -344,7 +344,7 @@ void wxTextCtrl::OnDropFiles(wxDropFilesEvent& event) void wxTextCtrl::OnKeyDown(wxKeyEvent& event) { - if ( event.MetaDown() ) + if ( event.GetModifiers() == wxMOD_CMD ) { switch( event.GetKeyCode() ) {