]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/grid.cpp
added XRC handler for wxStdDialogButtonSizer
[wxWidgets.git] / src / generic / grid.cpp
index 75060a4a5c1b012f18f77d72c2ffa232f4906285..439b9bbb1221de153b147902c2b0d147eb8cb42d 100644 (file)
@@ -583,12 +583,12 @@ bool wxGridCellEditor::IsAcceptedKey(wxKeyEvent& event)
         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)
@@ -753,9 +753,9 @@ void wxGridCellTextEditor::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)
     {