Open ildar opened 8 months ago
That's quite mysterious. I tried doing the same kind of experiment on MacOS, but MOD2 (which is mapped to the command key) only appears when it is pressed. This may be a Gtk issue.
Well, running this:
I see this:
> before key-press
`MOD2
> before key-press
`MOD2
I couldn't find the original C GTK code to check.
I tried your code, and only the correct modifiers appear. So this looks like a problem in the version of gtk you are using.
I'm using lablgtk with GTK+2 on X11.
I've modified
events.ml
example and it shows that everykey_press
event's state has `MOD2.I've checked with
xkbwatch
and it shows that mod2 is off as expected.How I help with debugging that?
Thanks in advance.