mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-13 18:52:41 +02:00
Possible fix for keyboard crash
This commit is contained in:
parent
04decfa89c
commit
e744edc6a0
1 changed files with 11 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue