You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GEvent type supports a KEY_EVENT category which includes KEY_PRESSED, KEY_RELEASED, and KEY_TYPED. The GWindow type, however, does not generate GEvents in response to a KEY_EVENT.
I think (?) it's due to the following. The GWindow type wraps an _Internal_QMainWindow object. The _Internal_QMainWindow::keyPressEvent function forwards to the superclass is a QMainWindow, which does not override keyPressEvent, so the super call goes to QWidget, which only uses keyPressEvent to handle window closures. Afterwards, _Internal_QMainWindow::keyPressEvent calls GWindow::processKeyPressEventInternal, which does nothing. That would probably be the place to add the hook to add a corresponding GEvent to the event queue.
The text was updated successfully, but these errors were encountered:
The
GEvent
type supports aKEY_EVENT
category which includesKEY_PRESSED
,KEY_RELEASED
, andKEY_TYPED
. TheGWindow
type, however, does not generateGEvent
s in response to aKEY_EVENT
.I think (?) it's due to the following. The
GWindow
type wraps an_Internal_QMainWindow
object. The_Internal_QMainWindow::keyPressEvent
function forwards to the superclass is aQMainWindow
, which does not overridekeyPressEvent
, so the super call goes toQWidget
, which only useskeyPressEvent
to handle window closures. Afterwards,_Internal_QMainWindow::keyPressEvent
callsGWindow::processKeyPressEventInternal
, which does nothing. That would probably be the place to add the hook to add a correspondingGEvent
to the event queue.The text was updated successfully, but these errors were encountered: