From: Robin Dunn Date: Sat, 3 Nov 2001 20:33:54 +0000 (+0000) Subject: A little tweak X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/00c64037fb763781c64036f6e165fc0555a07d4e A little tweak git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/contrib/src/stc/stc.cpp b/contrib/src/stc/stc.cpp index 9e417842af..f56024c0ca 100644 --- a/contrib/src/stc/stc.cpp +++ b/contrib/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); diff --git a/contrib/src/stc/stc.cpp.in b/contrib/src/stc/stc.cpp.in index b05ddaf347..991ae203ac 100644 --- a/contrib/src/stc/stc.cpp.in +++ b/contrib/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); 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); 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);