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 587880 - It is not possible to add multiple accelerators to a path
It is not possible to add multiple accelerators to a path
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.16.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2009-07-06 11:41 UTC by Maarten Bosmans
Modified: 2014-05-12 00:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Maarten Bosmans 2009-07-06 11:41:35 UTC
In my app I would like to bind multiple accelerator keys to the same accelerator path. But the following code:

gtk_accel_map_add_entry ("<app>/path1", gdk_keyval_from_name ("m"), 0);
gtk_accel_map_add_entry ("<app>/path1", gdk_keyval_from_name ("n"), 0);

only executes the action related with the path when the m key is pressed, not when pressing n.
Comment 1 Matthias Clasen 2014-05-12 00:11:39 UTC
The new way of doing accelerators for actions, gtk_application_set_accels_for_action, allows to set multiple accelerators for an action.