removed more unneeded code in kbd handling logic
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4962,16 +4962,8 @@ bool wxWindowMSW::HandleKeyDown(WXWPARAM wParam, WXLPARAM lParam)
|
|||||||
id = wParam;
|
id = wParam;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( id != -1 ) // VZ: does this ever happen (FIXME)?
|
wxKeyEvent event(CreateKeyEvent(wxEVT_KEY_DOWN, id, lParam, wParam));
|
||||||
{
|
return GetEventHandler()->ProcessEvent(event);
|
||||||
wxKeyEvent event(CreateKeyEvent(wxEVT_KEY_DOWN, id, lParam, wParam));
|
|
||||||
if ( GetEventHandler()->ProcessEvent(event) )
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxWindowMSW::HandleKeyUp(WXWPARAM wParam, WXLPARAM lParam)
|
bool wxWindowMSW::HandleKeyUp(WXWPARAM wParam, WXLPARAM lParam)
|
||||||
@@ -4984,14 +4976,8 @@ bool wxWindowMSW::HandleKeyUp(WXWPARAM wParam, WXLPARAM lParam)
|
|||||||
id = wParam;
|
id = wParam;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( id != -1 ) // VZ: does this ever happen (FIXME)?
|
wxKeyEvent event(CreateKeyEvent(wxEVT_KEY_UP, id, lParam, wParam));
|
||||||
{
|
return GetEventHandler()->ProcessEvent(event);
|
||||||
wxKeyEvent event(CreateKeyEvent(wxEVT_KEY_UP, id, lParam, wParam));
|
|
||||||
if ( GetEventHandler()->ProcessEvent(event) )
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int wxWindowMSW::HandleMenuChar(int WXUNUSED_IN_WINCE(chAccel),
|
int wxWindowMSW::HandleMenuChar(int WXUNUSED_IN_WINCE(chAccel),
|
||||||
|
Reference in New Issue
Block a user