Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25849/src/gui

Modified Files:
        wxFolderView.cpp 
Log Message:
... but do let the control process the home and end keys for navigation

Index: wxFolderView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxFolderView.cpp,v
retrieving revision 1.655
retrieving revision 1.656
diff -b -u -2 -r1.655 -r1.656
--- wxFolderView.cpp    7 Apr 2004 23:23:37 -0000       1.655
+++ wxFolderView.cpp    7 Apr 2004 23:25:42 -0000       1.656
@@ -4534,25 +4534,20 @@
          break;
 
-#ifdef OS_WIN
-      case 0:
-         // pressing any alphanumeric character in the list control starts
-         // incremental search in it which is worse than useless in our case
-         // because it's never going to find anything (the first column is
-         // always flags in this case and won't match...) and we just lost the
-         // current selection, so prevent this from happening
-         newFocus = -1;
-         break;
-#endif // OS_WIN
-
       case WXK_UP:
       case WXK_DOWN:
+      case WXK_HOME:
+      case WXK_END:
+         // let the control process these keys as they're used for navigation
          event.Skip();
-         // fall through
+         return false;
 
       default:
-         // for the same reasons as above, eat the character and don't allow
-         // it to be processed by the control itself lest it starts an
-         // incremental search, so don't call event.Skip()
-         return false;
+         // pressing any alphanumeric character in the list control starts
+         // incremental search in it which is worse than useless in our case
+         // because it's never going to find anything (the first column is
+         // always flags in this case and won't match...) and we just lost the
+         // current selection, so prevent this from happening by *not* calling
+         // event.Skip() here
+         newFocus = -1;
    }
 



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to