X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0080691b20a6fb116b7936ba452b583950a7db3e..bdb9dffbf6f7e0aa1473f78552a3f177da31ebdb:/src/common/utilscmn.cpp?ds=sidebyside diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index 7b388e602b..8ad2a9d596 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -355,6 +355,16 @@ StringMatch (char *str1, char *str2, bool subString, bool exact) return FALSE; } +// Don't synthesize KeyUp events holding down a key and producing +// KeyDown events with autorepeat. On by default and always on +// on in wxMSW. wxGTK version in utilsgtk.cpp. +#ifndef __WXGTK__ +bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) ) +{ + return TRUE; // detectable auto-repeat is the only mode MSW supports +} +#endif + // Return the current date/time // [volatile] wxString wxNow( void ) @@ -459,7 +469,7 @@ wxFindWindowByLabel1 (const wxString& title, wxWindow * parent) if (parent) { - for ( wxNode * node = parent->GetChildren().GetFirst(); + for ( wxWindowList::Node * node = parent->GetChildren().GetFirst(); node; node = node->GetNext() ) { @@ -782,6 +792,7 @@ int wxMessageBox(const wxString& message, const wxString& caption, long style, return ans; } +#if wxUSE_TEXTDLG wxString wxGetTextFromUser(const wxString& message, const wxString& caption, const wxString& defaultValue, wxWindow *parent, int x, int y, bool WXUNUSED(centre) ) @@ -792,6 +803,7 @@ wxString wxGetTextFromUser(const wxString& message, const wxString& caption, else return wxString(""); } +#endif // wxUSE_TEXTDLG #ifdef __MWERKS__ char *strdup(const char *s)