From ae8e69b4bb70b8915064bc5ae404d039db1ca587 Mon Sep 17 00:00:00 2001 From: Bhushan Shah Date: Mon, 22 Feb 2021 21:49:39 +0530 Subject: [PATCH] [platforms/drm] accept both keypress and keyrelease event in filter We don't want to pass out either of key press or release event to other filters. --- src/plugins/platforms/drm/drm_inputeventfilter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/platforms/drm/drm_inputeventfilter.cpp b/src/plugins/platforms/drm/drm_inputeventfilter.cpp index 63b11f1ac7..9b9d803f04 100644 --- a/src/plugins/platforms/drm/drm_inputeventfilter.cpp +++ b/src/plugins/platforms/drm/drm_inputeventfilter.cpp @@ -45,9 +45,8 @@ bool DpmsInputEventFilter::keyEvent(QKeyEvent *event) { if (event->type() == QKeyEvent::KeyPress) { notify(); - return true; } - return false; + return true; } bool DpmsInputEventFilter::touchDown(qint32 id, const QPointF &pos, quint32 time)