]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/winuniv.cpp
don't treat foo in c:\\foo\bar as network share
[wxWidgets.git] / src / univ / winuniv.cpp
index 7485272ce95f654acedafaca46db0d84e760bfb5..24e2865a77c1de5e989876428d78de9a956469ce 100644 (file)
@@ -1311,6 +1311,7 @@ void wxWindow::OnKeyDown(wxKeyEvent& event)
             }
 #endif // wxUSE_MENUS
 
+#if wxUSE_BUTTON
             // if it wasn't in a menu, try to find a button
             if ( command != -1 )
             {
@@ -1326,6 +1327,7 @@ void wxWindow::OnKeyDown(wxKeyEvent& event)
                     }
                 }
             }
+#endif // wxUSE_BUTTON
 
             // don't propagate accels from the child frame to the parent one
             break;