fix for sleep mode on displays, fixes #11557

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@63334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2010-01-31 15:19:50 +00:00
parent d3daf59f2a
commit da71899374

View File

@@ -820,14 +820,14 @@ void wxTextCtrl::OnChar(wxKeyEvent& event)
int key = event.GetKeyCode() ; int key = event.GetKeyCode() ;
bool eat_key = false ; bool eat_key = false ;
if ( key == 'a' && event.MetaDown() ) if ( key == 'a' && event.GetModifiers() == wxMOD_CMD )
{ {
SelectAll() ; SelectAll() ;
return ; return ;
} }
if ( key == 'c' && event.MetaDown() ) if ( key == 'c' && event.GetModifiers() == wxMOD_CMD )
{ {
if ( CanCopy() ) if ( CanCopy() )
Copy() ; Copy() ;
@@ -860,7 +860,7 @@ void wxTextCtrl::OnChar(wxKeyEvent& event)
// assume that any key not processed yet is going to modify the control // assume that any key not processed yet is going to modify the control
m_dirty = true; m_dirty = true;
if ( key == 'v' && event.MetaDown() ) if ( key == 'v' && event.GetModifiers() == wxMOD_CMD )
{ {
if ( CanPaste() ) if ( CanPaste() )
Paste() ; Paste() ;
@@ -868,7 +868,7 @@ void wxTextCtrl::OnChar(wxKeyEvent& event)
return ; return ;
} }
if ( key == 'x' && event.MetaDown() ) if ( key == 'x' && event.GetModifiers() == wxMOD_CMD )
{ {
if ( CanCut() ) if ( CanCut() )
Cut() ; Cut() ;