[geary/mjog/composer-autocomplete-fixes: 1/4] Fix <Tab> not filling selected autocomplete in composer



commit 3ce2eb9f17f97558a21b61ebef10ee2c1c15e933
Author: Michael Gratton <mike vee net>
Date:   Wed Feb 12 12:09:11 2020 +1100

    Fix <Tab> not filling selected autocomplete in composer
    
    Gtk.EntryCompletion only fires `cursor_on_match` if `inline_selection`
    is true. O_o

 src/client/composer/contact-entry-completion.vala | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/client/composer/contact-entry-completion.vala 
b/src/client/composer/contact-entry-completion.vala
index bd6584d7..59a8ec06 100644
--- a/src/client/composer/contact-entry-completion.vala
+++ b/src/client/composer/contact-entry-completion.vala
@@ -63,6 +63,9 @@ public class ContactEntryCompletion : Gtk.EntryCompletion, Geary.BaseInterface {
         pack_start(text_renderer, true);
         set_cell_data_func(text_renderer, cell_text_data);
 
+        // cursor-on-match isn't fired unless this is true
+        this.inline_selection = true;
+
         this.match_selected.connect(on_match_selected);
         this.cursor_on_match.connect(on_cursor_on_match);
     }


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