git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32566
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// be a function key or etc., the platforms appear to always give us a
// small value in this case) then fallback to the ascii key code but
// don't do anything for function keys or etc.
- if (key <= 255) {
+ if (key <= 127) {
key = evt.GetKeyCode();
- keyOk = (key <= 255);
+ keyOk = (key <= 127);
}
if (keyOk) {
m_swx->DoAddChar(key);
// be a function key or etc., the platforms appear to always give us a
// small value in this case) then fallback to the ascii key code but
// don't do anything for function keys or etc.
- if (key <= 255) {
+ if (key <= 127) {
key = evt.GetKeyCode();
- keyOk = (key <= 255);
+ keyOk = (key <= 127);
}
if (keyOk) {
m_swx->DoAddChar(key);
// be a function key or etc., the platforms appear to always give us a
// small value in this case) then fallback to the ascii key code but
// don't do anything for function keys or etc.
- if (key <= 255) {
+ if (key <= 127) {
key = evt.GetKeyCode();
- keyOk = (key <= 255);
+ keyOk = (key <= 127);
}
if (keyOk) {
m_swx->DoAddChar(key);
// be a function key or etc., the platforms appear to always give us a
// small value in this case) then fallback to the ascii key code but
// don't do anything for function keys or etc.
- if (key <= 255) {
+ if (key <= 127) {
key = evt.GetKeyCode();
- keyOk = (key <= 255);
+ keyOk = (key <= 127);
}
if (keyOk) {
m_swx->DoAddChar(key);