aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2014-02-03 00:49:01 +0800
committerMatthew Barnes <mbarnes@redhat.com>2014-02-03 00:55:16 +0800
commit8924b0bd5ef04c30ed3a43652e70e583407f7b85 (patch)
treee4247aaa42b82180b38afc5fc25aa9176642a8cf /mail
parent90643324feb8062f697ae4ec5d118c5f5f7369f5 (diff)
downloadgsoc2013-evolution-8924b0bd5ef04c30ed3a43652e70e583407f7b85.tar.gz
gsoc2013-evolution-8924b0bd5ef04c30ed3a43652e70e583407f7b85.tar.zst
gsoc2013-evolution-8924b0bd5ef04c30ed3a43652e70e583407f7b85.zip
Bug 723377 - Add alternate zoom shortcuts
The zoom in shortcut (Ctrl+) can be confusing for some users because on keyboards with a [+ =] key the '+' requires holding Shift. To mitigate the confusion, also accept (Ctrl=) for zoom in. And while we're add it, also support Ctrl+ and Ctrl- on keypads, as well as keyboards with dedicated Zoom In / Zoom Out keys.
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-reader.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c
index 0021294eb8..3b6aaa30a6 100644
--- a/mail/e-mail-reader.c
+++ b/mail/e-mail-reader.c
@@ -2518,6 +2518,14 @@ mail_reader_key_press_event_cb (EMailReader *reader,
action_name = "mail-toggle-important";
break;
+ case GDK_KEY_ZoomIn:
+ action_name = "mail-zoom-in";
+ break;
+
+ case GDK_KEY_ZoomOut:
+ action_name = "mail-zoom-out";
+ break;
+
default:
return FALSE;
}
@@ -2536,6 +2544,15 @@ ctrl:
action_name = "mail-previous-unread";
break;
+ case GDK_KEY_equal:
+ case GDK_KEY_KP_Add:
+ action_name = "mail-zoom-in";
+ break;
+
+ case GDK_KEY_KP_Subtract:
+ action_name = "mail-zoom-out";
+ break;
+
default:
return FALSE;
}