Fix: Enter on the filebrowser filename label skips operator #111693

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:111645 into main 2023-08-30 16:19:44 +02:00
1 changed files with 3 additions and 3 deletions

View File

@ -4900,9 +4900,9 @@ static int ui_do_but_EXIT(bContext *C, uiBut *but, uiHandleButtonData *data, con
if (ELEM(event->type, LEFTMOUSE, EVT_PADENTER, EVT_RETKEY) && event->val == KM_PRESS) {
int ret = WM_UI_HANDLER_BREAK;
/* XXX: (a bit ugly) Special case handling for file-browser drag button. */
if (ui_but_drag_is_draggable(but) && but->imb &&
ui_but_contains_point_px_icon(but, data->region, event))
/* XXX: (a bit ugly) Special case handling for file-browser drag buttons (icon and filename
* label). */
if (ui_but_drag_is_draggable(but) && ui_but_contains_point_px_icon(but, data->region, event))
{
ret = WM_UI_HANDLER_CONTINUE;
}