RE: [AD] src/gui.c hotkey and hidden widgets patch

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> Hmm, imho we should make disabled widgets to not receive it too

Err, yes, that was my point: disabled widgets should not receive
it (this was already the case), and hidden ones still should (which
they didn't).

> for example, Windows (yeah, yeah, microsoft sucks and all that, i
> know, but
> it
> has a better gui system than allegro... probably :) if you have an
> accelerator (key, or
> combination of keys) assigned to a command (menu, button, etc) and that
> command
> is either disabled and/or hidden, that accelerator doesn't get send to its
> proper
> command
>
> That way if you press Ctrl+A, and that is pointed to the command "Select
> All", but "Select All" is not enabled or visible, it doesn't get executed

It seems that's a bit of a flaky behavior. Hidden means hidden, and
disabled means disabled. But there are some other strange behaviors in
how Allegro interprets these flags, this one's only part of it.

--
Lyrian



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/