UI: support an 'active default' button for pop-ups
authorCampbell Barton <ideasman42@gmail.com>
Wed, 27 Mar 2019 10:39:44 +0000 (21:39 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 27 Mar 2019 13:26:00 +0000 (00:26 +1100)
commit2d34420648e5feacf1237abc975f8ff2a0c2a907
tree1a59f1e4afa3d84e6b7899f9501ad5a346054571
parente3b83e2921922a45db5a33c739e1d993452944d0
UI: support an 'active default' button for pop-ups

Use this for the save confirmation dialog so it has a default action
when pressing enter which draws with a highlight so it's clear what the
default action is (the dialog was just closing before).

Resolves T57686
source/blender/editors/include/UI_interface.h
source/blender/editors/interface/interface_handlers.c
source/blender/editors/interface/interface_intern.h
source/blender/editors/interface/interface_layout.c
source/blender/editors/interface/interface_query.c
source/blender/editors/interface/interface_widgets.c
source/blender/makesrna/intern/rna_ui.c
source/blender/windowmanager/intern/wm_window.c