X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1bc32508684ff0b49fcf0f03ef27e31669fc2eae..4eb1fe9da6dbf2a82876547b6f69836e086f22e7:/src/stc/stc.cpp diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index 9e417842af..f56024c0ca 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -1854,7 +1854,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);