aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Popela <tpopela@redhat.com>2014-03-11 21:51:01 +0800
committerTomas Popela <tpopela@redhat.com>2014-03-11 21:51:01 +0800
commit17acc96914812badfe87cae637cd4d1c605fe3c1 (patch)
treecaf1d621150337145dfd0944bb40e826fca9e687
parent130b1b00ece4ec57b8d0fcfcee1bdf508d709736 (diff)
downloadgsoc2013-evolution-17acc96914812badfe87cae637cd4d1c605fe3c1.tar
gsoc2013-evolution-17acc96914812badfe87cae637cd4d1c605fe3c1.tar.gz
gsoc2013-evolution-17acc96914812badfe87cae637cd4d1c605fe3c1.tar.bz2
gsoc2013-evolution-17acc96914812badfe87cae637cd4d1c605fe3c1.tar.lz
gsoc2013-evolution-17acc96914812badfe87cae637cd4d1c605fe3c1.tar.xz
gsoc2013-evolution-17acc96914812badfe87cae637cd4d1c605fe3c1.tar.zst
gsoc2013-evolution-17acc96914812badfe87cae637cd4d1c605fe3c1.zip
Bug 711350: Cannot position caret in received message body without using the mouse
If Caret mode is enabled don't try to process the navigation keys and don't set the focus on main frame to actually make the Caret mode working.
-rw-r--r--modules/mail/e-mail-shell-view-private.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/mail/e-mail-shell-view-private.c b/modules/mail/e-mail-shell-view-private.c
index 1c1035d69e..7a774057cf 100644
--- a/modules/mail/e-mail-shell-view-private.c
+++ b/modules/mail/e-mail-shell-view-private.c
@@ -319,10 +319,13 @@ mail_shell_view_key_press_event_cb (EMailShellView *mail_shell_view,
case GDK_KEY_Up:
case GDK_KEY_Right:
case GDK_KEY_Down:
- case GDK_KEY_Prior:
case GDK_KEY_Next:
case GDK_KEY_End:
case GDK_KEY_Begin:
+ /* If Caret mode is enabled don't try to process these keys */
+ if (e_web_view_get_caret_mode (E_WEB_VIEW (mail_display)))
+ return FALSE;
+ case GDK_KEY_Prior:
if (!mail_shell_view_mail_display_needs_key (mail_display, FALSE) &&
webkit_web_view_get_main_frame (WEBKIT_WEB_VIEW (mail_display)) !=
webkit_web_view_get_focused_frame (WEBKIT_WEB_VIEW (mail_display))) {