[geary/bug/728002-webkit2: 108/140] Fix composer web view not being focused on reply.



commit 721ecd892ed13c4dcbf51c2c3668c419bbba06b1
Author: Michael James Gratton <mike vee net>
Date:   Wed Jan 25 10:17:11 2017 +1100

    Fix composer web view not being focused on reply.

 src/client/composer/composer-widget.vala |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/client/composer/composer-widget.vala b/src/client/composer/composer-widget.vala
index 25d2a18..44c6b13 100644
--- a/src/client/composer/composer-widget.vala
+++ b/src/client/composer/composer-widget.vala
@@ -779,9 +779,10 @@ public class ComposerWidget : Gtk.EventBox {
     }
 
     public void set_focus() {
-        if (Geary.String.is_empty(to))
+        bool not_compact = (this.state != ComposerState.INLINE_COMPACT);
+        if (not_compact && Geary.String.is_empty(to))
             this.to_entry.grab_focus();
-        else if (Geary.String.is_empty(subject))
+        else if (not_compact && Geary.String.is_empty(subject))
             this.subject_entry.grab_focus();
         else
             this.editor.grab_focus();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]