diff --git a/docs/changes.txt b/docs/changes.txt index abbadf529d..c9304a16d0 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -613,6 +613,7 @@ All (GUI): - Accept wxALIGN_CENTRE_HORIZONTAL in wxStaticText XRC handler (David Hart). - Fix appearance after updating a wxGrid with hidden rows/columns (iwbnwif). - Make wxAuiNotebookXmlHandler actually work. +- Fix key handling in wxStyledTextCtrl in non-Unicode build (David Costanzo). wxGTK: diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index 38b9d52e30..e16eaad412 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -4749,7 +4749,7 @@ void wxStyledTextCtrl::OnChar(wxKeyEvent& evt) { } #else int key = evt.GetKeyCode(); - if (key <= WXK_START || key > WXK_COMMAND) { + if (key < WXK_START) { m_swx->DoAddChar(key); return; } diff --git a/src/stc/stc.cpp.in b/src/stc/stc.cpp.in index cd4ee94e94..50c2dab618 100644 --- a/src/stc/stc.cpp.in +++ b/src/stc/stc.cpp.in @@ -887,7 +887,7 @@ void wxStyledTextCtrl::OnChar(wxKeyEvent& evt) { } #else int key = evt.GetKeyCode(); - if (key <= WXK_START || key > WXK_COMMAND) { + if (key < WXK_START) { m_swx->DoAddChar(key); return; }