GNOME Bugzilla – Bug 692754
power: Mnemonics don't work
Last modified: 2013-01-30 21:37:20 UTC
Pressing and holding the Alt key in the Power panel reveals that several (but not all) items have mnemonics set. When I try to active one with say Alt+W to focus the Wi-Fi box, nothing happens. We should either drop the mnemonics (which is what my attached patch does since it's easy) or we should fix the mnemonics so that they work (which we might have to do anyway if it is EggListBox which is broken).
Created attachment 234682 [details] [review] power: drop mnemonics from labels Mnemonics don't seem to work with EggListBox so let's drop them for now
Created attachment 234687 [details] [review] power: Fix mnemonic activation There were some stupid mistakes, where we didn't set up the right mnemonic widgets due to variable reuse. For the automatic suspend row, we have to work a little harder to make mnemonic activation work, by connecting directly to ::mnemonic-activate.
Nothing to do with EggListBox, really
Ok, this works except that the keyboard focus only changes for Alt+S, Alt+M (or at least on my computer, Alt+C). For the others, the widget is activated but the keyboard focus remains on the previous selection.
yeah, that is the gtk behaviour: if the mnemonic target is activatable, activate it, otherwise focus it.
Why can't it do both? For instance, using Alt+R and Alt+B in the Keyboard panel both focuses and activates the checkbox. Why should a checkbox be different than a switch?
Review of attachment 234687 [details] [review]: Looks good.
(In reply to comment #6) > Why can't it do both? For instance, using Alt+R and Alt+B in the Keyboard panel > both focuses and activates the checkbox. Why should a checkbox be different > than a switch? There's no checkbox in the keyboard panel, its cell renderers. Those are different... I'm not saying it can't be different, I'm just explaining that what you are seeing is intentional behaviour of gtk, not a listbox or control-center bug...
Comment on attachment 234687 [details] [review] power: Fix mnemonic activation Attachment 234687 [details] pushed as f3b8b5f - power: Fix mnemonic activation