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:
parent
db497bbba7
commit
40ce144ae3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user