Update of /cvsroot/mahogany/M/src/gui
In directory usw-pr-cvs1:/tmp/cvs-serv27423/src/gui

Modified Files:
        wxlwindow.cpp 
Log Message:
aborted (because the real bug is in wxWindows) attempts to fix the bug 676 -- no real 
changes

Index: wxlwindow.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxlwindow.cpp,v
retrieving revision 1.135
retrieving revision 1.136
diff -b -u -2 -r1.135 -r1.136
--- wxlwindow.cpp       8 Sep 2002 19:23:11 -0000       1.135
+++ wxlwindow.cpp       21 Sep 2002 11:44:13 -0000      1.136
@@ -509,6 +509,7 @@
 {
    int keyCode = event.KeyCode();
-   bool ctrlDown = event.ControlDown();
-   bool shiftDown = event.ShiftDown();
+   const bool ctrlDown = event.ControlDown();
+   const bool shiftDown = event.ShiftDown();
+   const bool altDown = event.AltDown();
 
 #ifdef WXLAYOUT_DEBUG
@@ -540,5 +541,5 @@
       && m_llist->HasSelection()
       && ! IsDirectionKey(keyCode)
-      && ! (event.AltDown() || ctrlDown)
+      && ! (altDown || ctrlDown)
       )
    {
@@ -638,5 +639,5 @@
       {
          /* First, handle control keys */
-         if(ctrlDown && !shiftDown && ! event.AltDown())
+         if(ctrlDown && !shiftDown && ! altDown)
          {
             if(keyCode >= 'A' && keyCode <= 'Z')
@@ -717,5 +718,5 @@
          }
          // ALT only:
-         else if( event.AltDown() && ! event.ControlDown() )
+         else if( altDown && ! ctrlDown )
          {
             switch(keyCode)
@@ -732,5 +733,5 @@
          }
          // no control keys:
-         else if ( ! event.AltDown() && ! event.ControlDown())
+         else if ( ! altDown && ! ctrlDown)
          {
             switch(keyCode)
@@ -781,6 +782,5 @@
 
                default:
-                  if((!(event.ControlDown() || event.AltDown()
-                     ))
+                  if((!(ctrlDown || altDown))
                      && (keyCode < 256 && keyCode >= 32)
                      )



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to