GNOME Bugzilla – Bug 692171
power: Impossible to scroll power panel up/down using only keyboard
Last modified: 2013-01-28 10:02:29 UTC
gnome-control-center from jhbuild on Ubuntu 13.04 Alpha 1. Open Settings to the Power panel. 2. Use the keyboard (tab and arrow keys) to navigate and select different elements 3. Select something that is "off the page" (not visible without scrolling, like the bottom item in the list) What should happen The view should be automatically scrolled down so that the selected item is visible. In fact, it looks like it's currently not possible to scroll the page down using just the keyboard (arrow keys, tab, and even Page Up/Page Down).
Created attachment 234095 [details] [review] power: Improve keyboard navigation This commit 'links' the arrow navigation between the list boxes in the power page, so that it becomes possible to arrow down all the way from the battery section to automatic suspend. We also set up the focus adjustment so that the focus row gets scrolled into view. This requires the egg-list-box module to have commit 98b0a39efe7b1892570ece53748ab153a91b9cbc.
Review of attachment 234095 [details] [review]: It looks like your branch is a week out of date as this doesn't apply cleanly against trunk.
Yeah, it was accidentally written against a different branch. I'll provide a new one.
Created attachment 234161 [details] [review] power: Improve keyboard navigation This commit 'links' the arrow navigation between the list boxes in the power page, so that it becomes possible to arrow down all the way from the battery section to automatic suspend. We also set up the focus adjustment so that the focus row gets scrolled into view. This requires the egg-list-box module to have commit 98b0a39efe7b1892570ece53748ab153a91b9cbc.
Thanks, the arrow keys work how I expect with your patch. Page Up/Page Down however does not; it only scrolls up or down one item (like the arrow keys) instead of up or down by ~ a page. Do you want me to open a new bug for that?
The behaviour of page up/down in egglistbox is an egglistbox issue. I'm not sure if you'll get what you want here though; the best we can do with the current setup is to have page down go from the first item to the last, then to the first item of the next list, then to the last item, and so on.
Created attachment 234597 [details] [review] power: Improve keyboard navigation This commit 'links' the arrow navigation between the list boxes in the power page, so that it becomes possible to arrow down all the way from the battery section to automatic suspend. We also set up the focus adjustment so that the focus row gets scrolled into view. This requires the egg-list-box module to have commit 98b0a39efe7b1892570ece53748ab153a91b9cbc.
Not shorter, but more elegant I think.
Attachment 234597 [details] pushed as cf7530b - power: Improve keyboard navigation