wxListCtrl will receive EVT_CHAR() events now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f5eafd0e55
commit
d3dcceb436
@ -1385,8 +1385,14 @@ void wxListMainWindow::OnChar( wxKeyEvent &event )
|
||||
{
|
||||
wxListEvent le( wxEVT_COMMAND_LIST_KEY_DOWN, GetParent()->GetId() );
|
||||
le.m_code = event.KeyCode();
|
||||
le.SetEventObject( GetParent() );
|
||||
GetParent()->GetEventHandler()->ProcessEvent( le );
|
||||
|
||||
wxWindow *parent = GetParent();
|
||||
le.SetEventObject( parent );
|
||||
wxEvtHandler *handler = parent->GetEventHandler();
|
||||
handler->ProcessEvent( le );
|
||||
|
||||
// pass the original CHAR event to the ctrl too
|
||||
handler->ProcessEvent( event );
|
||||
|
||||
/*
|
||||
if (event.KeyCode() == WXK_TAB)
|
||||
|
Loading…
Reference in New Issue
Block a user