X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/518b5d2ffbaf7422195537a5512e791be4497591..dfc3d7e025e919d9cf0d2e59d3c74bfab0b07e55:/src/gtk/utilsgtk.cpp diff --git a/src/gtk/utilsgtk.cpp b/src/gtk/utilsgtk.cpp index d9ceaf81f4..4a64e6a797 100644 --- a/src/gtk/utilsgtk.cpp +++ b/src/gtk/utilsgtk.cpp @@ -35,6 +35,7 @@ #include #include #include +#include "X11/XKBlib.h" // ---------------------------------------------------------------------------- // misc. @@ -45,6 +46,15 @@ void wxBell() gdk_beep(); } +// Synthesize KeyUp events holding down a key and producing +// KeyDown events with autorepeat. +bool wxSetDetectableAutoRepeat( bool flag ) +{ + Bool result; + XkbSetDetectableAutoRepeat( GDK_DISPLAY(), flag, &result ); + return result; // true if keyboard hardware supports this mode +} + // ---------------------------------------------------------------------------- // display characterstics // ----------------------------------------------------------------------------