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 684452 - message tray: no keynav into the context menu
message tray: no keynav into the context menu
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: message-tray
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-09-20 10:21 UTC by Matthias Clasen
Modified: 2014-11-03 18:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
messageTray: Only handle Down arrow on summary boxpointer (937 bytes, patch)
2012-09-20 11:32 UTC, Florian Müllner
needs-work Details | Review
messageTray: Move focus to menu when triggered by keybinding (920 bytes, patch)
2012-09-20 11:32 UTC, Florian Müllner
none Details | Review
messageTray: Only handle Down arrow on left-click (1021 bytes, patch)
2012-09-20 21:56 UTC, Florian Müllner
none Details | Review
Message Tray: extend right click menus to be real PopupMenus (9.81 KB, patch)
2012-10-13 17:06 UTC, Giovanni Campagna
reviewed Details | Review

Description Matthias Clasen 2012-09-20 10:21:55 UTC
Open the tray with Super-M.
Hit the Menu key to pop up the Open/Remove menu.
There is no way to activate items in the menu with the keyboard.
I would expect up-arrow to keynav into the menu, in this state.
Comment 1 Florian Müllner 2012-09-20 10:29:52 UTC
Tab works here, but it's definitively unexpected. Worse, when navigating the menu, the Down handling for the notification (pop down) is processed before the one for keynav in the menu (move focus down).
Comment 2 Florian Müllner 2012-09-20 11:32:07 UTC
Created attachment 224828 [details] [review]
messageTray: Only handle Down arrow on summary boxpointer
Comment 3 Florian Müllner 2012-09-20 11:32:12 UTC
Created attachment 224829 [details] [review]
messageTray: Move focus to menu when triggered by keybinding
Comment 4 Florian Müllner 2012-09-20 11:35:32 UTC
Attached patches work around the issues noted, but I suspect that the underlying issue is that we expect the "menu" to look and behave like a menu, but we are not actually using PopupMenu ... (obviously out of scope at this point)
Comment 5 Florian Müllner 2012-09-20 12:05:01 UTC
Comment on attachment 224828 [details] [review]
messageTray: Only handle Down arrow on summary boxpointer

Grrr, breaks Down arrow where we want it to work ...
Comment 6 Florian Müllner 2012-09-20 21:56:25 UTC
Created attachment 224869 [details] [review]
messageTray: Only handle Down arrow on left-click

For the right-click menu, arrow keys should navigate inside the
menu, not close the boxpointer.

Not pretty, but it works ...
Comment 7 Jasper St. Pierre (not reading bugmail) 2012-09-20 21:59:21 UTC
(In reply to comment #4)
> Attached patches work around the issues noted, but I suspect that the
> underlying issue is that we expect the "menu" to look and behave like a menu,
> but we are not actually using PopupMenu ... (obviously out of scope at this
> point)

Giovanni had a patch that would introduce a PopupMenuEmbed, which was a PopupMenu that could be stuffed into something else like a BoxPointer.
Comment 8 Florian Müllner 2012-10-11 17:20:32 UTC
Do we want this for 3.6.1?
Comment 9 Jasper St. Pierre (not reading bugmail) 2012-10-11 17:27:32 UTC
(In reply to comment #8)
> Do we want this for 3.6.1?

I think we'd want to do the correct fix for this regardless, which would mean some form of PopupMenuEmbed. CCing Giovanni
Comment 10 Florian Müllner 2012-10-11 17:30:26 UTC
I'd say at this point this depends very much on the intrusiveness of the correct fix.
Comment 11 Giovanni Campagna 2012-10-13 17:06:46 UTC
Created attachment 226383 [details] [review]
Message Tray: extend right click menus to be real PopupMenus

Introduce a new PopupMenuEmbed class that shares positioning and
focus navigation code with PopupMenu, and use that to build the
right click menu for message tray sources.

Here it is the rebased PopupMenuEmbed patch. It's only partially
tested, so I'm not very confident in stuffing it in 3.6.1.
Comment 12 Jasper St. Pierre (not reading bugmail) 2012-12-15 01:13:12 UTC
Review of attachment 226383 [details] [review]:

Yikes. I'm not sure why the buildRightClickMenu changes are needed, and I'd like to see the introduction of PopupMenu split out.
Comment 13 Giovanni Campagna 2012-12-15 01:46:49 UTC
(In reply to comment #12)
> Review of attachment 226383 [details] [review]:
> 
> Yikes. I'm not sure why the buildRightClickMenu changes are needed, and I'd
> like to see the introduction of PopupMenu split out.

Well, it was not meant for review, it was just a code dump of something I wrote long ago. I was expecting Florian to improve on it.
Comment 14 Jasper St. Pierre (not reading bugmail) 2013-03-03 21:45:54 UTC
Do we want this for 3.8?
Comment 15 Alejandro Piñeiro Iglesias (IRC: infapi00) 2014-11-03 17:04:34 UTC
Ping, 

some users were pinging us in relation with this bug on IRC (specifically using as example the device icon, and the list of devices available) . 

Taking into account that the patch uploaded was written against 3.8 probably is already obsolete. Could someone confirm at least that?
Comment 16 Florian Müllner 2014-11-03 17:10:26 UTC
I no longer have the patch in my tree and keynav works here, so tentatively closing as obsolete.
Comment 17 Florian Müllner 2014-11-03 17:11:45 UTC
(Part of it has been handled by bug 735614, I'm too lazy to look up any other changes that made it work)
Comment 18 Joanmarie Diggs (IRC: joanie) 2014-11-03 17:40:56 UTC
Hmmm. Looks like maybe it's just limited to removable device? I see no way to activate the eject button in the pop-up associated with that notification tray item.
Comment 19 Florian Müllner 2014-11-03 17:51:50 UTC
(In reply to comment #18)
> Hmmm. Looks like maybe it's just limited to removable device? I see no way to
> activate the eject button in the pop-up associated with that notification tray
> item.

That may very well be possible. I only tested the context menu (<shift>F10) which is what the attached patches were supposed to fix.
Comment 20 Joanmarie Diggs (IRC: joanie) 2014-11-03 18:18:50 UTC
Understood. Since other message tray items seem to be keyboard navigable, I opened bug 739588 for the removable device issue.