I wonder if you can help with key bindings?
In our application we want to perform the behavior of Ctrl+z and Ctrl+Z to be the same.
If the caps lock is off, Ctrl-z is processed correctly. We detect a KGpress event.
However, when the caps lock is on, we can NOT process the Ctrl+Z event. There does not seem to be a either of these 2 events (kGKeyPress or kKeyRelease:) coming through on our HandleEvent() event handler
Our TGFrame derived class we define the following:
class TGFrame : public TGWindow, public TQObject
in our TGFrame constructor/init method we make the following calls.
gVirtualX->GrabKey(fId, gVirtualX->KeysymToKeycode(kKey_Z), kKeyControlMask, kTRUE);
gVirtualX->GrabKey(fId, gVirtualX->KeysymToKeycode(kKey_z), kKeyControlMask, kTRUE);
What am I missing?
Regards to all…
Angel