[AD] src/gui.c hotkey and hidden widgets patch |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Hi,
Allegro does not send hotkeys to hidden widgets, which seems
a bit odd, especially as it does not do it for disabled
widgets too. It could break some existing code, but I think
the probability is rather low. And the behavior seems a bit
broken anyway :)
--- gui.c.msg Sun Jul 29 13:48:26 2001
+++ gui.c Sun Jul 29 13:49:02 2001
@@ -981,7 +981,7 @@
if ((((cascii > 0) && (cascii <= 255) &&
(utolower(player->dialog[c].key) == utolower((cascii)))) ||
((!cascii) && (player->dialog[c].key == (cscan<<8)))) &&
- (!(player->dialog[c].flags & (D_HIDDEN | D_DISABLED)))) {
+ (!(player->dialog[c].flags & (D_DISABLED)))) {
MESSAGE(c, MSG_KEY, ccombo);
goto getout;
}
--
Lyrian