Qt Shift Key - Must Press Twice
-
Hi everybody,
I've been playing with a browser recently. Now when everything is perfect (apparently), there are some mistakes that I have just discovered.
For example, there's a major issue: when I key the
shift
key with its corresponding key, I must press at least 2 times and it displays the result then, only then.For instance when I want to key in the "#" symbol, I must press
shift
-3
-3
, or else nothing will be inserted. As well as%
, I must entershift
-5
-5
.Magically, if I don't release the
shift
key, it enters the corresponding characters one by one each time I have entered them, as if nothing had happened.The project structure (actually a lot of the code are borrowed from the Qt Network's "Google Search Suggestion Example" and the Qt Web Engine Widget's "Simple Browser Example"): a tab widget, a main window, a
QWebEngineView
, aQWebEnginePage
, an address bar, all subclassed.If you need some more details or code, please continue the thread below.
Will be greatly appreciated!!
Postscript: Any other stuff, neither major nor minor (e.g.
QWebEngineProfile
,QWebEnginePage::WebAction
, etc.), are not affected and worked 100% properly as expected. If they didn't, I would post a new thread below. -
Which Qt version? I've had some issues with keyboard in 6.4.3 I think, but they have got fixed in 6.5 IIRC.