X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5fd656d50366b26450b1535c384c84d53e1449f5..0b634ddd0801fcb01b3a951c22449e5dfee9c29e:/src/stc/stc.cpp.in diff --git a/src/stc/stc.cpp.in b/src/stc/stc.cpp.in index 9d5b1f19b2..a21f681252 100644 --- a/src/stc/stc.cpp.in +++ b/src/stc/stc.cpp.in @@ -550,9 +550,9 @@ void wxStyledTextCtrl::OnChar(wxKeyEvent& evt) { // 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);