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:
parent
2a3068b14e
commit
46f8bfcf7b
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue