]> git.saurik.com Git - wxWidgets.git/commitdiff
Recognize "_" as alphanumeric key in wxGenericTreeCtrl find item code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 7 Oct 2012 22:40:52 +0000 (22:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 7 Oct 2012 22:40:52 +0000 (22:40 +0000)
Items can have underscores in their names too, not just letters and digits.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/treectlg.cpp

index 4c631b27b3fc7da26ac31b743f2a51b687282eb7..a49c53b198e659b2c0360987b134d06e8bf63739 100644 (file)
@@ -3305,7 +3305,8 @@ void wxGenericTreeCtrl::OnChar( wxKeyEvent &event )
             if ( !event.HasModifiers() &&
                  ((keyCode >= '0' && keyCode <= '9') ||
                   (keyCode >= 'a' && keyCode <= 'z') ||
-                  (keyCode >= 'A' && keyCode <= 'Z' )))
+                  (keyCode >= 'A' && keyCode <= 'Z') ||
+                  (keyCode == '_')))
             {
                 // find the next item starting with the given prefix
                 wxChar ch = (wxChar)keyCode;