mirror of
https://github.com/overte-org/overte.git
synced 2025-06-05 15:30:35 +02:00
Fix further Linux errors
This commit is contained in:
parent
f2232b89f0
commit
33a77a5dbd
1 changed files with 4 additions and 2 deletions
|
@ -207,8 +207,10 @@ void finishOpenVrKeyboardInput() {
|
||||||
updateFromOpenVrKeyboardInput();
|
updateFromOpenVrKeyboardInput();
|
||||||
// Simulate an enter press on the top level window to trigger the action
|
// Simulate an enter press on the top level window to trigger the action
|
||||||
if (0 == (_currentHints & Qt::ImhMultiLine)) {
|
if (0 == (_currentHints & Qt::ImhMultiLine)) {
|
||||||
qApp->sendEvent(offscreenUi->getWindow(), &QKeyEvent(QEvent::KeyPress, Qt::Key_Return, Qt::KeyboardModifiers(), QString("\n")));
|
auto keyPress = QKeyEvent(QEvent::KeyPress, Qt::Key_Return, Qt::KeyboardModifiers(), QString("\n"));
|
||||||
qApp->sendEvent(offscreenUi->getWindow(), &QKeyEvent(QEvent::KeyRelease, Qt::Key_Return, Qt::KeyboardModifiers()));
|
auto keyRelease = QKeyEvent(QEvent::KeyRelease, Qt::Key_Return, Qt::KeyboardModifiers());
|
||||||
|
qApp->sendEvent(offscreenUi->getWindow(), &keyPress);
|
||||||
|
qApp->sendEvent(offscreenUi->getWindow(), &keyRelease);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue