[evolution] Bug 723377 - Add alternate zoom shortcuts
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 723377 - Add alternate zoom shortcuts
- Date: Sun, 2 Feb 2014 17:02:25 +0000 (UTC)
commit 8924b0bd5ef04c30ed3a43652e70e583407f7b85
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.
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 0021294..3b6aaa3 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]