Auto repeat only the keys which should be repeated

Change-Id: I283bf6cc2f6c338fc769d77dd84ae7acb08eb7be
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
This commit is contained in:
Giulio Camuffo 2014-07-22 15:24:57 +03:00
parent db497bbba7
commit 40ce144ae3

View File

@ -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;