[Commits] [SCM] claws branch, master, updated. 3.14.1-68-ge31ee60

ticho at claws-mail.org ticho at claws-mail.org
Wed Dec 21 13:21:58 CET 2016


The branch, master has been updated
       via  e31ee60178f6d6a1daf673bea143d1446d4378db (commit)
      from  123563ca47cc6225791d5cff84792d9de6c312a6 (commit)

Summary of changes:
 src/foldersel.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit e31ee60178f6d6a1daf673bea143d1446d4378db
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Wed Dec 21 13:21:03 2016 +0100

    Stop left/right keypresses from propagating further in foldersel.
    
    This amends commit 5305715.

diff --git a/src/foldersel.c b/src/foldersel.c
index 5470906..faf8293 100644
--- a/src/foldersel.c
+++ b/src/foldersel.c
@@ -658,8 +658,10 @@ static gboolean key_pressed(GtkWidget *widget, GdkEventKey *event, gpointer data
 	if (!event)
 		return FALSE;
 
-	if (event->keyval == GDK_KEY_Escape)
+	if (event->keyval == GDK_KEY_Escape) {
 		foldersel_cancel(NULL, NULL);
+		return TRUE;
+	}
 
 	GtkTreePath *path = NULL;
 	gtk_tree_view_get_cursor(GTK_TREE_VIEW(treeview), &path, NULL);
@@ -674,6 +676,7 @@ static gboolean key_pressed(GtkWidget *widget, GdkEventKey *event, gpointer data
 				gtk_tree_path_up(path);
 				gtk_tree_view_set_cursor(GTK_TREE_VIEW(treeview), path, NULL, FALSE);
 			}
+			return TRUE;
 			break;
 		case GDK_KEY_Right:
 			if (!gtk_tree_view_row_expanded(GTK_TREE_VIEW(treeview), path)) {
@@ -682,6 +685,7 @@ static gboolean key_pressed(GtkWidget *widget, GdkEventKey *event, gpointer data
 				gtk_tree_path_down(path);
 				gtk_tree_view_set_cursor(GTK_TREE_VIEW(treeview), path, NULL, FALSE);
 			}
+			return TRUE;
 			break;
 	}
 

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list