On 9/16/07, Gustav Broberg <broberg@...370...> wrote:
Yeah, I wasn't finished :) Being able to focus a container doesn't imply that you automatically can tab between its descendants, but I've committed changes that adds handling of this.
Thanks, now tabbing works correct in the active (highlighted) dialog, thanks
I'm afraid that's trickier. Looking at the GTK source, the way I guess it works is that each GtkWindow stores a hash table with all mnemonics accelerators (=Alt accelerators) used by its containing widgets. When a mnemonic accelerator is invoked it pulls out a list with all widgets that match that mnemonic accelerator, and gives focus to one of them by round-robin that list. I can't see that GTK provides any way of changing that behavior for a specific context.
There's probably some very intrusive hack around this, like catching Alt+key events in docked dialogs and loop through all its descendants to see if there's a match, but it's not going to be pretty... :(
If this is not fixed somehow, I'm afraid we'll have to remove all the mnemonics from dialogs :(