GNOME Bugzilla – Bug 679720
Hotkey Zoom Ctrl + '+'
Last modified: 2021-06-09 20:47:05 UTC
This[0] bug was reported in the Debian Bug Tracker, so I am forwarding it here. "Hotkey Zoom Ctrl + '+' does not work with Numpad '+' (the other '+' works here)" [0] http://bugs.debian.org/626423 Cheers,
Yep, I can reproduce.
Hello, After working a bit to try to fix this, with Wences Arana, we can see that the shorcuts are defined in: src/planner-gantt-view.c In line 177 there is a GtkActionEntry [0]: { "ZoomIn", GTK_STOCK_ZOOM_IN, N_("_Zoom In"), "<control>plus", N_("Zoom in"), so we guess that we need something like { "ZoomInKP", GTK_STOCK_ZOOM_IN, N_("_Zoom In"), "<control>KP_Add", N_("Zoom in"), but that is not enough. For reference: Gnumeric does something similar, in line 2319: http://git.gnome.org/browse/gnumeric/tree/src/wbc-gtk-actions.c [0] http://developer.gnome.org/gtk/2.24/GtkActionGroup.html#GtkActionEntry
It is not possible at the moment to have multiple shortcuts for the same action with GtkActionEntry. See bug 695917.
I've had a look at the way Epyphany handles that. Basically they're working around the GtkActionEntry limitation by adding an additional event handler. They have a long comment that explains that it's kind of a hack and that it shouldn't really be done this way. I'm going to follow that advice and stop investigating ways to work around the limitation. Thus this bug will remain open until GTK+ has been fixed to solve that issue.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/World/planner/-/issues/215.