X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1bc32508684ff0b49fcf0f03ef27e31669fc2eae..c0ad3d42d5eb619556a3905df22338360b1f6fcc:/src/stc/stc.cpp.in diff --git a/src/stc/stc.cpp.in b/src/stc/stc.cpp.in index b05ddaf347..991ae203ac 100644 --- a/src/stc/stc.cpp.in +++ b/src/stc/stc.cpp.in @@ -398,7 +398,7 @@ void wxStyledTextCtrl::OnChar(wxKeyEvent& evt) { // alt let's skip it. bool ctrl = evt.ControlDown(); bool alt = evt.AltDown(); - bool skip = (ctrl || alt && ! (ctrl && alt)); + bool skip = ((ctrl || alt) && ! (ctrl && alt)); if (key <= 0xff && !iscntrl(key) && !m_lastKeyDownConsumed && !skip) { m_swx->DoAddChar(key);