Key handler expects events to be accepted, and will ignore them if
necessary.
Change-Id: I8ee110d70c98ff7c2de107b44e7d51aab12678c4
Reviewed-by: Michael Brasser
(cherry picked from commit
6476bbea1d7905f083789224accc8f4b43a0779b)
switch (e->type()) {
case QEvent::KeyPress:
case QEvent::KeyRelease:
+ e->accept();
QSGItemPrivate::get(item)->deliverKeyEvent(static_cast<QKeyEvent *>(e));
while (!e->isAccepted() && (item = item->parentItem())) {
e->accept();
}
break;
case QEvent::InputMethod:
+ e->accept();
QSGItemPrivate::get(item)->deliverInputMethodEvent(static_cast<QInputMethodEvent *>(e));
while (!e->isAccepted() && (item = item->parentItem())) {
e->accept();