[evolution/gnome-3-32] I#325 - F2 shortcut to Rename Folder stopped working



commit e4497c16b6ff0ccb001ea1f58bb1b41b102648fc
Author: Milan Crha <mcrha redhat com>
Date:   Mon Mar 11 11:11:29 2019 +0100

    I#325 - F2 shortcut to Rename Folder stopped working
    
    Closes https://gitlab.gnome.org/GNOME/evolution/issues/325

 src/shell/e-shell-window.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/shell/e-shell-window.c b/src/shell/e-shell-window.c
index 56bc01b972..e523fe0c93 100644
--- a/src/shell/e-shell-window.c
+++ b/src/shell/e-shell-window.c
@@ -2122,7 +2122,8 @@ e_shell_window_get_need_input (EShellWindow *shell_window,
 
        focused = gtk_window_get_focus (GTK_WINDOW (shell_window));
 
+       /* The F2 is used as a shortcut to rename folder in the Mail view */
        return focused && (GTK_IS_ENTRY (focused) ||
                GTK_IS_EDITABLE (focused) ||
-               (GTK_IS_TREE_VIEW (focused) && gtk_tree_view_get_search_column (GTK_TREE_VIEW (focused)) >= 
0));
+               (GTK_IS_TREE_VIEW (focused) && event->keyval != GDK_KEY_F2 && gtk_tree_view_get_search_column 
(GTK_TREE_VIEW (focused)) >= 0));
 }


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