mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 18:18:02 +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;
|
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: {
|
case QEvent::InputMethodQuery: {
|
||||||
auto window = getWindow();
|
auto window = getWindow();
|
||||||
if (window && window->activeFocusItem()) {
|
if (window && window->activeFocusItem()) {
|
||||||
|
|
Loading…
Reference in a new issue