[evolution/gnome-3-10] Bug 723377 - Add alternate zoom shortcuts
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-10] Bug 723377 - Add alternate zoom shortcuts
- Date: Sun, 2 Feb 2014 17:05:30 +0000 (UTC)
commit c5c5fe0b5b1c8d951508c7b0a421b342d05abdae
Author: Matthew Barnes <mbarnes redhat com>
Date: Sun Feb 2 11:49:01 2014 -0500
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.
(cherry picked from commit 8924b0bd5ef04c30ed3a43652e70e583407f7b85)
mail/e-mail-reader.c | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c
index efd706f..5eebf44 100644
--- a/mail/e-mail-reader.c
+++ b/mail/e-mail-reader.c
@@ -2521,6 +2521,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;
}
@@ -2539,6 +2547,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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]