On 21 Apr 2022, at 19:02, danielchanfana wrote:
>
> Thanks but I simply changed to the left alt, but now windows make a ding when I press with other letter.
> Anyway to supress that ding?
From fltk? No, I do not think so.
Though Alt-blah key combinations are (at least in my experience anyway) silent, unless you are trying to use a combination that the OS or WM want for themselves...?
Remember that the key events go a lot of places before they get to fltk and your app - notably to the OS itself (which has a good look for events and key-combinations it cares about as “special”) and then to the window manager (which also has a good look for “special” key combos) before it gets anywhere near you code...
Most of the current “systems", and Windows is bad for this, have a heap of key-combos already reserved that they use for particular operations, and you pretty much can not use those combos for your own purposes; it can be a real nuisance.
What key combinations were you using? Are they ones that Windows already has a special use for?
>
> Em quinta-feira, 21 de abril de 2022 às 13:00:37 UTC+1, Albrecht Schlosser escreveu:
>
> You can use test/keyboard.cxx to find out what FLTK reports in Fl::event_key(). On my system with a German keyboard (which may matter [1]) the keyboard demo reports:
>
> Alt: FL_Alt_L
>
> AltGr: 0xfe03
>
> There's obviously no "translation" to a FLTK keyname for AltGr.
On “some” systems (and this probably depends on the keymap, locale, who-knows-what-else) I have seen the Right-Alt (AltGr) return as (Alt + Ctrl), so that might be a thing?
Do not know...