[gnome-builder] source-view: enable Enter for completion activation



commit 4ea6d763758c2711c37588a63f5b4ce622ab50cd
Author: Christian Hergert <chergert redhat com>
Date:   Wed Nov 2 17:25:49 2016 -0700

    source-view: enable Enter for completion activation
    
    This re-enables Enter for completion activation now that some of the
    underlying issues have been addressed.

 libide/sourceview/ide-source-view.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/libide/sourceview/ide-source-view.c b/libide/sourceview/ide-source-view.c
index dec5feb..fc65b96 100644
--- a/libide/sourceview/ide-source-view.c
+++ b/libide/sourceview/ide-source-view.c
@@ -6842,11 +6842,6 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
                                 "begin-rename", 0);
 
   /*
-   * <Return> while the completion window is displayed is actually really easy
-   * to accidentally activate. Therefore, we are switching to just Tab or the
-   * <Alt>Number accelerators. For example, "void<Return>" can easily activate
-   * search results like "voidfp" or "voidId".
-   *
    * Escape is wired up by the GtkSourceCompletion by default. However, some
    * keybindings may want to control that manually (such as Vim). Vim needs to
    * go back to normal mode upon Escape to more closely match the traditional
@@ -6854,7 +6849,6 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
    */
   completion_class = g_type_class_ref (GTK_SOURCE_TYPE_COMPLETION);
   binding_set = gtk_binding_set_by_class (completion_class);
-  gtk_binding_entry_remove (binding_set, GDK_KEY_Return, 0);
   gtk_binding_entry_remove (binding_set, GDK_KEY_Escape, 0);
   g_type_class_unref (completion_class);
 }


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