Fix: Enter on the filebrowser filename label skips operator #111693
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user