Possible fix for keyboard crash

This commit is contained in:
Gabriel Calero 2018-03-14 18:11:23 -03:00
parent 04decfa89c
commit e744edc6a0

View file

@ -181,7 +181,17 @@ bool OffscreenSurface::eventFilter(QObject* originalDestination, QEvent* event)
}
break;
}
case QEvent::InputMethod:
case QEvent::InputMethod: {
auto window = getWindow();
if (window && window->activeFocusItem()) {
event->ignore();
if (QCoreApplication::sendEvent(window->activeFocusItem(), event)) {
return event->isAccepted();
}
return false;
}
break;
}
case QEvent::InputMethodQuery: {
auto window = getWindow();
if (window && window->activeFocusItem()) {