Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.0, 6.5.1
-
None
-
Windows 11
-
-
eda0ccb36 (dev), 8bc45bcfc (6.5), 4fb8aebf8 (6.6)
Description
I have a simple QOpenGLWindow with nothing else but some keyboard, mouse and touch event handlers, which is compiled to webassembly (project attached). on systems without touch screen everything is fine. on windows systems with touch screen, no keyReleaseEvents are ever made. I have no linux or mac systems with touchscreen to test there.
investigation:
I believe, that there are two input paths to support native virtual keyboards. I don't understand the whole thing, but `plugins/platforms/wasm/qwasminputcontext.cpp` seems to create a hidden input field in html. that input field is present whenever keyReleaseEvents don't work.
I understand that this is not a problem for text input fields, but it is a problem whenever you want to use the keyboard for interaction (e.g., in our app, Ctrl, Shift and Alt change the method of interaction in 3D space).