// misc functions
// ----------------------------------------------------------------------------
-// Don't synthesize KeyUp events holding down a key and producing KeyDown
-// events with autorepeat. On by default and always 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 // !wxGTK
-
// Return the current date/time
wxString wxNow()
{
#if wxUSE_GUI
+// this function is only really implemented for X11-based ports, including GTK1
+// (GTK2 sets detectable auto-repeat automatically anyhow)
+#if !(defined(__WXX11__) || defined(__WXMOTIF__) || \
+ (defined(__WXGTK__) && !defined(__WXGTK20__)))
+bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) )
+{
+ return true;
+}
+#endif // !X11-based port
+
// ----------------------------------------------------------------------------
// Launch default browser
// ----------------------------------------------------------------------------