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 783121 - Allow ctrl+= as a zoom-in accelerator
Allow ctrl+= as a zoom-in accelerator
Status: RESOLVED FIXED
Product: gnome-maps
Classification: Applications
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: gnome-maps-maint
gnome-maps-maint
Depends on:
Blocks:
 
 
Reported: 2017-05-26 09:50 UTC by Debarshi Ray
Modified: 2017-05-26 10:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
mainWindow: Add <Primary>equal to the list of zoom-in accelerators (1010 bytes, patch)
2017-05-26 09:53 UTC, Debarshi Ray
committed Details | Review

Description Debarshi Ray 2017-05-26 09:50:27 UTC
On many keyboard layouts the shift modifier is needed to access the '+' key. It's a tad more convenient to be able to use an accelerator without pressing shift. Since '=' usually shares the key with '+', that's the most common fallback. Maps already allows '+' and '=' for zooming in, but not for the ctrl variants.

Since the ctrl-less variants are eaten up by the GtkEntry after start-up, unless someone explicitly changes the focus, having ctrl+= will make Maps slightly more keyboard friendly.
Comment 1 Debarshi Ray 2017-05-26 09:53:44 UTC
Created attachment 352635 [details] [review]
mainWindow: Add <Primary>equal to the list of zoom-in accelerators
Comment 2 Marcus Lundblad 2017-05-26 10:05:27 UTC
Review of attachment 352635 [details] [review]:

LGTM
Comment 3 Marcus Lundblad 2017-05-26 10:07:34 UTC
Thanks for the patch! Works great!
Actually, using plain +/= should work, but currently those end up in the search box (I think we have some logic for that, but maybe in has regressed), I guess I'll file an additional bug about that, I guess.
Comment 4 Marcus Lundblad 2017-05-26 10:08:16 UTC
Attachment 352635 [details] pushed as 201a1af - mainWindow: Add <Primary>equal to the list of zoom-in accelerators
Comment 5 Debarshi Ray 2017-05-26 10:14:17 UTC
(In reply to Marcus Lundblad from comment #3)
> Actually, using plain +/= should work, but currently those end up in the
> search box (I think we have some logic for that, but maybe in has
> regressed), I guess I'll file an additional bug about that, I guess.

When the main window is shown after start-up the GtkEntry has the keyboard focus. That's why the '+' and '=' keys get eaten up by it (due to commit 80f9b0f72d95256db42149afc148dbe18a55b4e5, I think).
Comment 6 Debarshi Ray 2017-05-26 10:14:25 UTC
Thanks for the review!