From 5702c3f1bf514d112f7280e53f7b0827bfd32455 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 29 Aug 2016 17:14:08 +0200 Subject: [PATCH] Fix Xkb::shouldKeyRepeat Was missing the magic +8 offset. --- keyboard_input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboard_input.cpp b/keyboard_input.cpp index 2230a30725..cf4dc00ea6 100644 --- a/keyboard_input.cpp +++ b/keyboard_input.cpp @@ -361,7 +361,7 @@ bool Xkb::shouldKeyRepeat(quint32 key) const if (!m_keymap) { return false; } - return xkb_keymap_key_repeats(m_keymap, key) != 0; + return xkb_keymap_key_repeats(m_keymap, key + 8) != 0; } void Xkb::switchToNextLayout()