[gtk/BUG_filechooser_new_folder_focus_GTK3: 2/2] gtkfilechooserwidget: set 'New folder' button focus-on-click



commit d093cf96c15cfd7df47857273b8c6f290c96da8f
Author: Nelson Benítez León <nbenitezl gmail com>
Date:   Tue Mar 31 19:58:00 2020 -0400

    gtkfilechooserwidget: set 'New folder' button focus-on-click
    
    As general rule, all buttons that launch a menu should
    not grab focus on click, because otherwise when the menu
    is closed the focus goes back to the button instead of
    the previously focused widget, which is the one the user
    was interacting with.
    
    So this is also the case for the 'New Folder' button on
    the filechooser.
    
    Fixes #2557

 gtk/ui/gtkfilechooserwidget.ui | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtk/ui/gtkfilechooserwidget.ui b/gtk/ui/gtkfilechooserwidget.ui
index c1b4b43d50..01d4075f6c 100644
--- a/gtk/ui/gtkfilechooserwidget.ui
+++ b/gtk/ui/gtkfilechooserwidget.ui
@@ -68,6 +68,7 @@
                                   <object class="GtkMenuButton" id="browse_new_folder_button">
                                     <property name="tooltip-text" translatable="yes">Create Folder</property>
                                     <property name="use-underline">1</property>
+                                    <property name="focus-on-click">0</property>
                                     <property name="popover">new_folder_popover</property>
                                     <signal name="notify::active" handler="new_folder_popover_active"/>
                                     <child>


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