diff options
author | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2014-07-22 15:24:57 +0300 |
---|---|---|
committer | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2014-07-23 10:48:30 +0200 |
commit | cdc71555c5ff5fc4bc9f584cef854af2a78cd6e0 (patch) | |
tree | 1e34a95f21a2b87a47f38e66dbbd8b9b7aea972d /src/client/qwaylandinputdevice.cpp | |
parent | ec43c89c5997f84369a422ba75761047bcd75b5e (diff) |
Auto repeat only the keys which should be repeated
Change-Id: I283bf6cc2f6c338fc769d77dd84ae7acb08eb7be
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/client/qwaylandinputdevice.cpp')
-rw-r--r-- | src/client/qwaylandinputdevice.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/qwaylandinputdevice.cpp b/src/client/qwaylandinputdevice.cpp index 9c570c7c8..145ef608d 100644 --- a/src/client/qwaylandinputdevice.cpp +++ b/src/client/qwaylandinputdevice.cpp @@ -788,7 +788,11 @@ void QWaylandInputDevice::Keyboard::keyboard_key(uint32_t serial, uint32_t time, code, 0, 0); #endif - if (state == WL_KEYBOARD_KEY_STATE_PRESSED) { + if (state == WL_KEYBOARD_KEY_STATE_PRESSED +#ifndef QT_NO_WAYLAND_XKB + && xkb_keymap_key_repeats(mXkbMap, code) +#endif + ) { mRepeatKey = qtkey; mRepeatCode = code; mRepeatTime = time; |