dpmsinputeventfilter: don't filter out key release events

If the release event is filtered out, the rest of the system thinks the
button is still pressed, even though it isn't
This commit is contained in:
Xaver Hugl 2023-09-27 00:11:28 +02:00
parent 2a3068b14e
commit 46f8bfcf7b

View file

@ -53,6 +53,8 @@ bool DpmsInputEventFilter::keyEvent(KeyEvent *event)
{
if (event->type() == QKeyEvent::KeyPress) {
notify();
} else if (event->type() == QKeyEvent::KeyRelease) {
return false;
}
return true;
}