Re: modifier keys (Re: Two bugs in the Dillo GUI (both Mac and ubuntu))
"corvid" <[email protected]>
| Newsgroups | gmane.comp.web.dillo.devel |
|---|---|
| Message-ID | <20110822213115.GF25032@local> |
I wrote:
> Can anyone with windows keys verify that they don't set FL_META?
> There _is_ code for:
>
> // For the first few years, there wasn't a good consensus on what the
> // Windows keys should be mapped to for X11. So we need to help out a
> // bit and map all variants to the same FLTK key...
> switch (keysym) {
> case XK_Meta_L:
> case XK_Hyper_L:
> case XK_Super_L:
> keysym = FL_Meta_L;
> break;
> case XK_Meta_R:
> case XK_Hyper_R:
> case XK_Super_R:
> keysym = FL_Meta_R;
> break;
> }
>
> and maybe there's something going on somewhere that I haven't noticed.
> I ask because perhaps we'll want to open an STR to get FL_META set.
I think I see what happens. On X (well, x.org, anyway), it apparently comes
through for free as the Mod4Mask bit in XButtonEvent.state, so expecting
to see the word 'meta' somewhere was no good.