]> git.saurik.com Git - wxWidgets.git/commitdiff
A little tweak
authorRobin Dunn <robin@alldunn.com>
Sat, 3 Nov 2001 20:33:54 +0000 (20:33 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 3 Nov 2001 20:33:54 +0000 (20:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/stc/stc.cpp
contrib/src/stc/stc.cpp.in
src/stc/stc.cpp
src/stc/stc.cpp.in

index 9e417842af43021098ad4169cb9f630ee5adfc99..f56024c0cacdaa9af606b309b0a3b97e5f1453ca 100644 (file)
@@ -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);
index b05ddaf347dda268af6eaef5a217d488445e8f1a..991ae203ac7e32eee1c42c11047cdf267ff90d77 100644 (file)
@@ -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);
index 9e417842af43021098ad4169cb9f630ee5adfc99..f56024c0cacdaa9af606b309b0a3b97e5f1453ca 100644 (file)
@@ -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);
index b05ddaf347dda268af6eaef5a217d488445e8f1a..991ae203ac7e32eee1c42c11047cdf267ff90d77 100644 (file)
@@ -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);