]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/accelcmn.cpp
fixing focus, fixes #11911
[wxWidgets.git] / src / common / accelcmn.cpp
index 611fdfd97fa83411d30f62ed06ac8ad37bf6ab45..ee99542df250842798f9310aa0c3d4d179b2d489 100644 (file)
@@ -323,7 +323,9 @@ wxString wxAcceleratorEntry::ToString() const
             // must be a simple key
             if (
 #if !wxUSE_UNICODE
-                 isascii(code) &&
+                 // we can't call wxIsalnum() for non-ASCII characters in ASCII
+                 // build as they're only defined for the ASCII range (or EOF)
+                 wxIsascii(code) &&
 #endif // ANSI
                     wxIsalnum(code) )
             {