GNOME Bugzilla – Bug 792319
Inconsistent shortcut display in right-click menu
Last modified: 2018-01-08 11:51:56 UTC
Assign a shortcut to the "Profile Preferences" action. On the right-click menu, the shortcut of "Copy", "Copy as HTML", "Paste", "Read-Only" actions aren't shown next to these labels, however, next to "Profile Preferences" its shortcut is also displayed. Same on Gnome Shell and Unity7.
It's a gtk bug (bug 789781) that accels are shown at all. I work-around this in g-t with a gross hack that traverses the menu and kills the accels (terminal-window.c:popup_menu_remove_accelerators). I've fixed it to also recurse into submenus; that fixes it here.
Why is it a bug rather than a nice feature?
Well, IMHO :-) because context menus *shouldn't* have accelerators. They make the menu too wide.
It's a matter of taste, I agree with you that narrower menus _look_ nicer, although IMHO the presence of shortcuts is more useful. I personally wouldn't bother overriding GTK+'s default. But I don't mind too much if you do.