Commit e61f1af3 authored by Milan Crha's avatar Milan Crha

I#325 - F2 shortcut to Rename Folder stopped working

Closes #325
parent 6e912c98
......@@ -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));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment