32 if( aEvent.GetModifiers() == wxMOD_CONTROL && aEvent.GetKeyCode() ==
'X' )
36 else if( aEvent.GetModifiers() == wxMOD_CONTROL && aEvent.GetKeyCode() ==
'C' )
40 else if( aEvent.GetModifiers() == wxMOD_CONTROL && aEvent.GetKeyCode() ==
'V' )
44 else if( aEvent.GetModifiers() == wxMOD_CONTROL && aEvent.GetKeyCode() ==
'A' )
46 aTextEntry->SelectAll();
48 else if( aEvent.GetKeyCode() == WXK_BACK )
51 aTextEntry->GetSelection( &start, &end );
55 aTextEntry->Remove( start, end );
56 aTextEntry->SetInsertionPoint( start );
58 else if ( start == end && start > 0 )
60 aTextEntry->Remove( start-1, start );
61 aTextEntry->SetInsertionPoint( start-1 );
64 else if( aEvent.GetKeyCode() == WXK_DELETE )
67 aTextEntry->GetSelection( &start, &end );
71 aTextEntry->Remove( start, end );
72 aTextEntry->SetInsertionPoint( start );
74 else if( start == end && start < aTextEntry->GetLastPosition() )
76 aTextEntry->Remove( start, start+1 );
static void OnCharHook(wxTextEntry *aTextEntry, wxKeyEvent &aEvent)