-
Notifications
You must be signed in to change notification settings - Fork 1.5k
GrabKey not working with kKeyControlMask on TGX11 #8665
Copy link
Copy link
Closed
Labels
Description
- Checked for duplicates
Describe the bug
In TGMainWindow, if I call:
gVirtualX->GrabKey(GetId(), gVirtualX->KeysymToKeycode(kKey_c), kKeyControlMask, kTRUE); //capture CTRL+C
and press CTRL+C, it never reaches the HandleKey function.
If I instead call:
gVirtualX->GrabKey(GetId(), gVirtualX->KeysymToKeycode(kKey_c), kAnyModifier, kTRUE);
it reaches the HandleKey function:
event->fState = 20, event->fState & kKeyControlMask = 4
This is also the reason why some of TRootGuiBuilder shortcuts are not working.

Expected behavior
GrabKey works well with kKeyControlMask on TGX11.
To Reproduce
- new TRootGuiBuilder
- Press CTRL+N
- It does not do anything
Setup
Reactions are currently unavailable