diff options
author | Julian Eisel <julian@blender.org> | 2022-05-20 17:27:08 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-05-20 17:35:13 +0300 |
commit | 8d65895af8f10395dccf305579210c7dae285999 (patch) | |
tree | d58f4e9ec78692e6818f2c42a9a25458ea182b17 /source/blender/editors/interface/interface_widgets.c | |
parent | de561280fc0b693dadf13dcb77d90b6363ca2c40 (diff) |
UI: Get rid of redundant UI_BUT_IMMEDIATE button flag
This flag was used to activate the hotkey input buttons (e.g. for
"Assign Shortcut") when opened in a popup. Since this was added, other
more generalized ways of getting this same behavior were implemented.
Had to tweak the hotkey button event handling a bit, but it seems to
behave exactly as before now.
Diffstat (limited to 'source/blender/editors/interface/interface_widgets.c')
-rw-r--r-- | source/blender/editors/interface/interface_widgets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index 98ecf91adbc..25f24bef903 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -115,7 +115,7 @@ enum { UI_STATE_TEXT_INPUT = UI_BUT_UNDO, UI_STATE_ACTIVE_LEFT = UI_BUT_VALUE_CLEAR, UI_STATE_ACTIVE_RIGHT = UI_BUT_TEXTEDIT_UPDATE, - UI_STATE_TEXT_BEFORE_WIDGET = UI_BUT_IMMEDIATE, + UI_STATE_TEXT_BEFORE_WIDGET = UI_BUT_ACTIVATE_ON_INIT, UI_STATE_FLAGS_ALL = (UI_STATE_HOLD_ACTION | UI_STATE_TEXT_INPUT | UI_STATE_ACTIVE_LEFT | UI_STATE_ACTIVE_RIGHT | UI_STATE_TEXT_BEFORE_WIDGET), |