After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 428074 - Mixer applet breaks keyboard navigation
Mixer applet breaks keyboard navigation
Status: RESOLVED FIXED
Product: gnome-applets
Classification: Other
Component: mixer
2.18.x
Other Linux
: Normal normal
: ---
Assigned To: Patrick Wade
gnome-applets Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-04-10 00:09 UTC by Jan Van Buggenhout
Modified: 2009-07-17 07:01 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Normal a11y keynav on panels with arrow keys (1.86 KB, patch)
2007-04-27 16:34 UTC, Patrick Wade
none Details | Review
Normal a11y keynav on panels with arrow keys (1.89 KB, patch)
2007-08-30 13:29 UTC, Patrick Wade
none Details | Review

Description Jan Van Buggenhout 2007-04-10 00:09:57 UTC
When you're navigating around the panel using the left and right arrow keys, and the mixer applet gets the focus, it uses the left and right keys to change the volume, hence breaking keyboard navigation.
Comment 1 Patrick Wade 2007-04-27 16:34:18 UTC
Created attachment 87157 [details] [review]
Normal a11y keynav on panels with arrow keys
Comment 2 Patrick Wade 2007-05-15 10:30:45 UTC
Any review? Thanks.
Comment 3 Ronald Bultje 2007-05-15 12:28:37 UTC
While you're at it, there's a bug:

      if (event->keyval == GDK_Up || event->keyval == GDK_Down 
         ||event->keyval == GDK_Left)
        increment = ..;

GDK_Right should be in there also. Can you fix that? Other than that, I guess this is OK. It my even be simpler to just use if (!applet->pop) break; to prevent changing 100 lines of code (some projects care about that) just for an indentation change...
Comment 4 Patrick Wade 2007-08-30 13:29:48 UTC
Created attachment 94633 [details] [review]
Normal a11y keynav on panels with arrow keys

Fixes additional problem mentioed by Ronald too.
Comment 5 Patrick Wade 2007-10-15 15:32:18 UTC
Any opinions?
Comment 6 Ronald Bultje 2007-10-15 16:00:40 UTC
+      if (applet->pop {

...

Could you try to compile the patch? :-).

I like the fact that you can navigate, but also that you can change volume with the arrow keys without popping it. Here's what I would do: read orientation (applet->orientation) and allow only up/down if we're horizontal panel and left/right if we're vertical panel, that way we don't conflict with keynavigation. Then for that, just add a (if ((orient==hor&&(key==left||right)) || (orient==ver&&(key==up||down))) break;. That way we don't lose this functionality.
Comment 7 Callum McKenzie 2009-07-17 07:01:52 UTC
The recent reworking of the volume applet ensured that keyboard navigation works. This now counts as fixed.