From 1111b9c98bd2b977bd68d79240ac4d60fcadc96b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 12 Aug 2016 07:45:31 +0200 Subject: [PATCH] Trigger global shortcuts also on key-repeat Summary: Restores feature parity with X11. Global shortcuts need to trigger also for repeat events. An example is the volume key or screen brightness. For other shortcuts like showing yakuake it does not make sense to trigger on repeat. Thus a long term solution is to add a flag to global shortcuts whether the key should trigger on repeat. BUG: 366608 Reviewers: #kwin, #plasma_on_wayland Subscribers: plasma-devel, kwin Tags: #plasma_on_wayland, #kwin Differential Revision: https://phabricator.kde.org/D2413 --- input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input.cpp b/input.cpp index a6de0bd8bb..81630ad3dd 100644 --- a/input.cpp +++ b/input.cpp @@ -416,7 +416,7 @@ public: return input()->shortcuts()->processAxis(event->modifiers(), direction); } bool keyEvent(QKeyEvent *event) override { - if (event->type() == QEvent::KeyPress && !event->isAutoRepeat()) { + if (event->type() == QEvent::KeyPress) { return input()->shortcuts()->processKey(event->modifiers(), event->nativeVirtualKey()); } return false;