Allow blocking automatic insertion by canceling edit.
Introduced widgetsRepo#finalizeCreation.
Merge branch 't/10936' into major