avoiding catching incorrect shortcuts, see #11676

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2010-01-31 14:42:51 +00:00
parent 5aa6ea933f
commit f0a9f45635

View File

@@ -344,7 +344,7 @@ void wxTextCtrl::OnDropFiles(wxDropFilesEvent& event)
void wxTextCtrl::OnKeyDown(wxKeyEvent& event) void wxTextCtrl::OnKeyDown(wxKeyEvent& event)
{ {
if ( event.MetaDown() ) if ( event.GetModifiers() == wxMOD_CMD )
{ {
switch( event.GetKeyCode() ) switch( event.GetKeyCode() )
{ {