ignore() key press event for keys not handled
(cherry picked from commit 6e208cf0cc60d3e7016a3bbdbb6dfd3c1b105186)
This commit is contained in:
parent
beb1f9b6cf
commit
d0e8d977b4
@ -607,8 +607,10 @@ public:
|
||||
|
||||
void handleKeyPressEvent(QKeyEvent *event)
|
||||
{
|
||||
if (!widget.data())
|
||||
if (!widget.data()) {
|
||||
event->ignore();
|
||||
return;
|
||||
}
|
||||
|
||||
QPointF start = q->scrollPosition();
|
||||
QPointF end = start;
|
||||
@ -637,7 +639,8 @@ public:
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
event->ignore();
|
||||
return;
|
||||
}
|
||||
|
||||
fixupAnimation.groupX->stop();
|
||||
|
Loading…
Reference in New Issue
Block a user