set wxKeyEvent::m_uniChar correctly in the events generated by generic wxListCtrl (#4581)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
67ef83eb03
commit
101198ba0c
@ -3393,16 +3393,10 @@ void wxListMainWindow::OnKeyDown( wxKeyEvent &event )
|
||||
wxWindow *parent = GetParent();
|
||||
|
||||
// propagate the key event upwards
|
||||
wxKeyEvent ke( wxEVT_KEY_DOWN );
|
||||
ke.m_shiftDown = event.m_shiftDown;
|
||||
ke.m_controlDown = event.m_controlDown;
|
||||
ke.m_altDown = event.m_altDown;
|
||||
ke.m_metaDown = event.m_metaDown;
|
||||
ke.m_keyCode = event.m_keyCode;
|
||||
ke.m_x = event.m_x;
|
||||
ke.m_y = event.m_y;
|
||||
wxKeyEvent ke(event);
|
||||
ke.SetEventObject( parent );
|
||||
if (parent->GetEventHandler()->ProcessEvent( ke )) return;
|
||||
if (parent->GetEventHandler()->ProcessEvent( ke ))
|
||||
return;
|
||||
|
||||
event.Skip();
|
||||
}
|
||||
@ -3412,16 +3406,9 @@ void wxListMainWindow::OnKeyUp( wxKeyEvent &event )
|
||||
wxWindow *parent = GetParent();
|
||||
|
||||
// propagate the key event upwards
|
||||
wxKeyEvent ke( wxEVT_KEY_UP );
|
||||
ke.m_shiftDown = event.m_shiftDown;
|
||||
ke.m_controlDown = event.m_controlDown;
|
||||
ke.m_altDown = event.m_altDown;
|
||||
ke.m_metaDown = event.m_metaDown;
|
||||
ke.m_keyCode = event.m_keyCode;
|
||||
ke.m_x = event.m_x;
|
||||
ke.m_y = event.m_y;
|
||||
ke.SetEventObject( parent );
|
||||
if (parent->GetEventHandler()->ProcessEvent( ke )) return;
|
||||
wxKeyEvent ke(event);
|
||||
if (parent->GetEventHandler()->ProcessEvent( ke ))
|
||||
return;
|
||||
|
||||
event.Skip();
|
||||
}
|
||||
@ -3442,16 +3429,10 @@ void wxListMainWindow::OnChar( wxKeyEvent &event )
|
||||
}
|
||||
|
||||
// propagate the char event upwards
|
||||
wxKeyEvent ke( wxEVT_CHAR );
|
||||
ke.m_shiftDown = event.m_shiftDown;
|
||||
ke.m_controlDown = event.m_controlDown;
|
||||
ke.m_altDown = event.m_altDown;
|
||||
ke.m_metaDown = event.m_metaDown;
|
||||
ke.m_keyCode = event.m_keyCode;
|
||||
ke.m_x = event.m_x;
|
||||
ke.m_y = event.m_y;
|
||||
wxKeyEvent ke(event);
|
||||
ke.SetEventObject( parent );
|
||||
if (parent->GetEventHandler()->ProcessEvent( ke )) return;
|
||||
if (parent->GetEventHandler()->ProcessEvent( ke ))
|
||||
return;
|
||||
|
||||
if ( HandleAsNavigationKey(event) )
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user