[gnome-photos] application: Support zooming using the keyboard's numeric keypad keys



commit fad8cf0c9709a6d47b9fd8c334c1c7b06c184c60
Author: Sabri Ünal <libreajans gmail com>
Date:   Sun Feb 9 18:41:27 2020 +0300

    application: Support zooming using the keyboard's numeric keypad keys
    
    https://gitlab.gnome.org/GNOME/gnome-photos/-/merge_requests/121

 src/photos-application.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index 9bfcca36..cb114fda 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -2615,9 +2615,9 @@ photos_application_startup (GApplication *application)
   const gchar *save_accels[2] = {"<Primary>x", NULL};
   const gchar *search_accels[2] = {"<Primary>f", NULL};
   const gchar *select_all_accels[2] = {"<Primary>a", NULL};
-  const gchar *zoom_best_fit_accels[3] = {"<Primary>0", NULL};
-  const gchar *zoom_in_accels[3] = {"<Primary>plus", "<Primary>equal", NULL};
-  const gchar *zoom_out_accels[2] = {"<Primary>minus", NULL};
+  const gchar *zoom_best_fit_accels[3] = {"<Primary>0", "<Primary>KP_0", NULL};
+  const gchar *zoom_in_accels[4] = {"<Primary>plus", "<Primary>equal", "<Primary>KP_Add", NULL};
+  const gchar *zoom_out_accels[3] = {"<Primary>minus", "<Primary>KP_Subtract", NULL};
 
   photos_debug (PHOTOS_DEBUG_APPLICATION, "PhotosApplication::startup");
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]