From 40ce144ae3d47a3b676aa105e78ce051c6e0fc95 Mon Sep 17 00:00:00 2001 From: Giulio Camuffo Date: Tue, 22 Jul 2014 15:24:57 +0300 Subject: [PATCH] Auto repeat only the keys which should be repeated Change-Id: I283bf6cc2f6c338fc769d77dd84ae7acb08eb7be Reviewed-by: Laszlo Agocs --- src/plugins/platforms/wayland/qwaylandinputdevice.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/platforms/wayland/qwaylandinputdevice.cpp b/src/plugins/platforms/wayland/qwaylandinputdevice.cpp index 9c570c7c8b1..145ef608d28 100644 --- a/src/plugins/platforms/wayland/qwaylandinputdevice.cpp +++ b/src/plugins/platforms/wayland/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;