diff options
author | Pablo Barciela <[email protected]> | 2017-11-09 00:23:41 +0100 |
---|---|---|
committer | Pablo Barciela <[email protected]> | 2017-11-09 00:25:54 +0100 |
commit | d177ad26be53ec2c52cc17e7290dd414f620db19 (patch) | |
tree | d5f2279cfe68cde1c0a4d1f2e0374c49856eab8d | |
parent | 43963f7c99794984e6c33aeb0e40714a54540828 (diff) | |
download | pluma-d177ad26be53ec2c52cc17e7290dd414f620db19.tar.bz2 pluma-d177ad26be53ec2c52cc17e7290dd414f620db19.tar.xz |
[ctrl] + [+] / [ctrl] + [-] using the numeric keypad
to increase/decrease font size
related issue: https://github.com/mate-desktop/pluma/issues/224
-rw-r--r-- | pluma/pluma-window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pluma/pluma-window.c b/pluma/pluma-window.c index a247d0e5..8e107f92 100644 --- a/pluma/pluma-window.c +++ b/pluma/pluma-window.c @@ -330,7 +330,7 @@ pluma_window_key_press_event (GtkWidget *widget, sscanf (tempsize, "%d", &nsize); - if (event->keyval == GDK_KEY_plus) + if ((event->keyval == GDK_KEY_plus) || (event->keyval == GDK_KEY_KP_Add)) { nsize = nsize + 1; sprintf (tempsize, "%d", nsize); @@ -338,7 +338,7 @@ pluma_window_key_press_event (GtkWidget *widget, if (!g_settings_get_boolean (settings, "use-default-font") && (nsize < 73)) g_settings_set_string (settings, "editor-font", g_strconcat (tempfont, tempsize, NULL)); } - else if (event->keyval == GDK_KEY_minus) + else if ((event->keyval == GDK_KEY_minus) || (event->keyval == GDK_KEY_KP_Subtract)) { nsize = nsize - 1; sprintf (tempsize, "%d", nsize); |