[Bf-blender-cvs] [f8a39ae0e41] filebrowser_redesign: Bring back active-default blue highlight for execute button

Julian Eisel noreply at git.blender.org
Thu Jul 25 02:45:23 CEST 2019


Commit: f8a39ae0e413513c9e02bdbbe4981ab3498b28e3
Author: Julian Eisel
Date:   Thu Jul 25 02:30:22 2019 +0200
Branches: filebrowser_redesign
https://developer.blender.org/rBf8a39ae0e413513c9e02bdbbe4981ab3498b28e3

Bring back active-default blue highlight for execute button

It marks the button representing the operation executed with enter.

===================================================================

M	release/scripts/startup/bl_ui/space_filebrowser.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_filebrowser.py b/release/scripts/startup/bl_ui/space_filebrowser.py
index 06cf6585683..b626d77c169 100644
--- a/release/scripts/startup/bl_ui/space_filebrowser.py
+++ b/release/scripts/startup/bl_ui/space_filebrowser.py
@@ -405,7 +405,9 @@ class FILEBROWSER_PT_file_operation(Panel):
         sub = row.row()
         sub.ui_units_x = 5
         # TODO change to "Open Directory"/"Parent Directory" based on highlight.
-        sub.operator("FILE_OT_execute", text=params.title)
+        subsub = sub.row()
+        subsub.active_default = True
+        subsub.operator("FILE_OT_execute", text=params.title)
         sub.operator("FILE_OT_cancel", text="Cancel")



More information about the Bf-blender-cvs mailing list