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.
This commit is contained in:
committed by
Vadim Zeitlin
parent
63944ae9bd
commit
ab092c8d13
@@ -5202,7 +5202,7 @@ void wxStyledTextCtrl::OnChar(wxKeyEvent& evt) {
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
int key = evt.GetKeyCode();
|
int key = evt.GetKeyCode();
|
||||||
if (key <= WXK_START || key > WXK_COMMAND) {
|
if (key < WXK_START) {
|
||||||
m_swx->DoAddChar(key);
|
m_swx->DoAddChar(key);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@@ -908,7 +908,7 @@ void wxStyledTextCtrl::OnChar(wxKeyEvent& evt) {
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
int key = evt.GetKeyCode();
|
int key = evt.GetKeyCode();
|
||||||
if (key <= WXK_START || key > WXK_COMMAND) {
|
if (key < WXK_START) {
|
||||||
m_swx->DoAddChar(key);
|
m_swx->DoAddChar(key);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user