keyOk = (key <= 127);
}
return keyOk;
-#else
+#else // !wxUSE_UNICODE
int key = event.GetKeyCode();
if (key <= 255)
return true;
-#endif
return false;
+#endif // wxUSE_UNICODE/!wxUSE_UNICODE
}
void wxGridCellEditor::StartingKey(wxKeyEvent& event)
#if wxUSE_UNICODE
ch = event.GetUnicodeKey();
if (ch <= 127)
- ch = event.GetKeyCode();
+ ch = (wxChar)event.GetKeyCode();
#else
- ch = event.GetKeyCode();
+ ch = (wxChar)event.GetKeyCode();
#endif
switch (ch)
{