Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv7837/src/gui
Modified Files:
wxFolderView.cpp
Log Message:
don't eat unrecognized keys in HandleFolderViewCharEvent(); this prevents using
TAB for switching between the folder view and the folder tree
Index: wxFolderView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxFolderView.cpp,v
retrieving revision 1.679
retrieving revision 1.680
diff -b -u -2 -r1.679 -r1.680
--- wxFolderView.cpp 30 Jun 2006 11:08:18 -0000 1.679
+++ wxFolderView.cpp 19 Aug 2006 11:53:14 -0000 1.680
@@ -4627,24 +4627,18 @@
break;
- case WXK_UP:
- case WXK_DOWN:
- case WXK_HOME:
- case WXK_END:
- case WXK_RETURN:
-#if !defined DEBUG_nerijus
- case WXK_SPACE:
-#endif
- // let the control process these keys as they're used for navigation
- event.Skip();
- return false;
-
default:
// 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
+ // always flags in this case and won't match...) and we just lose the
// current selection, so prevent this from happening by *not* calling
- // event.Skip() here
- ;
+ // event.Skip() in this case
+ if ( !isalnum(key) )
+ {
+ // let the control process other keys (some are used for navigation
+ // in it)
+ event.Skip();
+ return false;
+ }
}
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates