How to listen keypress event in QT host program? #441
Unanswered
StackExplode
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried to inherit
QCefView
and override itskeyPressEvent
method but not work.I successfully made a workaround to inject a js code when page start to load to listen keydown event and then call
CallBridge.invoke
method to invoke a host method when envent fired.I wonder if injecting js code to page is the proper way the handle keypress event?
Beta Was this translation helpful? Give feedback.
All reactions