fixed (?) bug 407974 (arrows not working)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -360,7 +360,10 @@ void TestGLCanvas::OnKeyDown( wxKeyEvent& event )
|
||||
|
||||
unsigned long currTime = event.m_timeStamp - m_xsynct;
|
||||
|
||||
if (evkey != m_Key)
|
||||
// we have to test for m_Key != 0 because otherwise the test would be
|
||||
// always true because it is set to 0 in OnKeyUp() below - I don't know
|
||||
// why is it like this, just fixing blindly (VZ)
|
||||
if (evkey != m_Key && m_Key != 0)
|
||||
{
|
||||
m_Key = evkey;
|
||||
m_LastRedraw = m_StartTime = m_LastTime = currTime;
|
||||
|
Reference in New Issue
Block a user