diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index f630177258..3f6e29eb14 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -5202,7 +5202,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 3ef93376f8..d4dfb647c5 100644 --- a/src/stc/stc.cpp.in +++ b/src/stc/stc.cpp.in @@ -908,7 +908,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; }