Nodes: Allow using escape key to exit node resizing

This commit is contained in:
Hans Goudey 2022-07-26 16:03:43 -05:00
parent faa0c7aa6f
commit f14f81e5ac
1 changed files with 4 additions and 0 deletions

View File

@ -1080,6 +1080,10 @@ static int node_resize_modal(bContext *C, wmOperator *op, const wmEvent *event)
}
break;
}
case EVT_ESCKEY:
node_resize_exit(C, op, true);
ED_region_tag_redraw(region);
return OPERATOR_CANCELLED;
}
return OPERATOR_RUNNING_MODAL;