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.
(cherry picked from commit ab092c8d13
)
This commit is contained in:
committed by
Vadim Zeitlin
parent
bca90fc95f
commit
b4e2f93248
@@ -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:
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user