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 436480 - Displaying mnemonics or shortcuts for GtkComboBox
Displaying mnemonics or shortcuts for GtkComboBox
Status: RESOLVED DUPLICATE of bug 567141
Product: gtk+
Classification: Platform
Component: Widget: GtkComboBox
unspecified
Other All
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 425258
 
 
Reported: 2007-05-07 00:20 UTC by erik_m85
Modified: 2017-03-03 15:10 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description erik_m85 2007-05-07 00:20:02 UTC
Wouldn't it be great to allow applications to use keyboard shortcuts for elemnts of a GtkComboBox? I don't know how such a thing normally works, but I suppose the application should handle the key-to-action binding, since focus might be somewhere other than on the combobox. Then what's left for GtkComboBox is to allow some way of indicating to the user that shortcuts exist and what keys to press.
It could work like in menus with right-aligned strings like "Ctrl+C". A different standard (using the Alt-key) is to underline (up to) one character at each line, and let Alt+[that character] be the shortcut.
I guess then GtkComboBox only need support for setting which letter to underline, or key sequence to display for each item in the list. The default should of course be to not display any such shortcut.
If the common practice is to let the control/widget itself handle key bindigs to shortcuts then this too would of course be made to work in the same way, but for the case I'm thinking of (http://bugzilla.gnome.org/show_bug.cgi?id=425258) I want shortcuts to work without focus on the related GtkComboBox.
Comment 1 Daniel Boles 2017-03-03 15:10:49 UTC

*** This bug has been marked as a duplicate of bug 567141 ***