From ab092c8d13312a7b519521bc839441f0c90e716a Mon Sep 17 00:00:00 2001 From: David Costanzo Date: Sun, 17 Jul 2016 14:15:40 +0200 Subject: [PATCH] Don't handle special keys as characters in wxSTC in non-Unicode build Correct the check for non-special keys when wxUSE_UNICODE==0. Closes #17598. --- src/stc/stc.cpp | 2 +- src/stc/stc.cpp.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }