diff --git a/tests/events/keyboard.cpp b/tests/events/keyboard.cpp index 044045a2c1b9..5551175a837d 100644 --- a/tests/events/keyboard.cpp +++ b/tests/events/keyboard.cpp @@ -163,9 +163,10 @@ void TestEvent(int line, const wxKeyEvent& ev, const KeyDesc& desc) if ( desc.m_keycode < WXK_START ) { - // For Latin-1 our key code is the same as uppercase version of Unicode character value. + // For Latin-1 uppercase version of our key code + // is the same as uppercase version of Unicode character value. CPPUNIT_ASSERT_EQUAL_MESSAGE( "wrong Unicode key in " + msg, - (char)desc.m_keycode, + (char)wxToupper(desc.m_keycode), (char)wxToupper(ev.GetUnicodeKey()) ); } else // Special key