// Author: Mattia Barbon
// Modified by:
// Created: 05/04/03
-// RCS-ID: $Id$
// Copyright: (c) Mattia Barbon
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/dcmemory.h"
#endif
+#include "wx/x11/private/wrapxkb.h"
+
// ----------------------------------------------------------------------------
// XShape code
// ----------------------------------------------------------------------------
}
#endif // !wxUSE_NANOX
+
+/* Don't synthesize KeyUp events holding down a key and producing
+ KeyDown events with autorepeat. */
+bool wxSetDetectableAutoRepeat( bool flag )
+{
+#ifdef HAVE_X11_XKBLIB_H
+ Bool result;
+ XkbSetDetectableAutoRepeat( (Display *)wxGetDisplay(), flag, &result );
+ return result; /* true if keyboard hardware supports this mode */
+#else
+ wxUnusedVar(flag);
+ return false;
+#endif
+}
+