From 5a1a633d0435531c2dabf3442e2a3ca72b4a6da3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 28 Mar 2019 00:57:46 +1100 Subject: UI: minor change to active-default logic Don't attempt to activate default button if it's already active. Also expand on the flags comment. --- source/blender/editors/include/UI_interface.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/include') diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index ec88278ec88..9f189b63ad5 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -193,7 +193,9 @@ enum { UI_BUT_IMMEDIATE = 1 << 20, UI_BUT_NO_UTF8 = 1 << 21, - /** For popups, pressing return activates this button, overriding the highlighed button. */ + /** For popups, pressing return activates this button, overriding the highlighted button. + * For non-popups this is just used as a display hint for the user to let them + * know the action which is activated when pressing return (file selector for eg). */ UI_BUT_ACTIVE_DEFAULT = 1 << 23, /** This but is "inside" a list item (currently used to change theme colors). */ -- cgit v1.2.3