Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VR keyboard doesn't work with overlay windows #1044

Closed
ksuprynowicz opened this issue Jun 22, 2024 · 1 comment · Fixed by #1046
Closed

VR keyboard doesn't work with overlay windows #1044

ksuprynowicz opened this issue Jun 22, 2024 · 1 comment · Fixed by #1046
Labels
bug Something isn't working

Comments

@ksuprynowicz
Copy link
Member

Overlay windows do not get events from VR keyboard, and also don't get Edit->Paste

Part of VR keyboard that injects events:

        QKeyEvent* pressEvent = new QKeyEvent(QEvent::KeyPress, scanCode, Qt::NoModifier, keyString);
        QKeyEvent* releaseEvent = new QKeyEvent(QEvent::KeyRelease, scanCode, Qt::NoModifier, keyString);
        QCoreApplication::postEvent(QCoreApplication::instance(), pressEvent);
        QCoreApplication::postEvent(QCoreApplication::instance(), releaseEvent);

Fixing this is needed for #961

@ksuprynowicz ksuprynowicz added the bug Something isn't working label Jun 22, 2024
@ksuprynowicz
Copy link
Member Author

Maybe void OffscreenQmlSurface::synthesizeKeyPress(QString key, QObject* targetOverride) could help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant