Originally, the polyline gesture tools were intended to have the gesture submit on clicking on the starting point and pressing enter only. It was brought up that the knife tool which has similar behavior also exposes this on double clicking. To better align expected behavior across tools, this commit adds similar functionality for the polyline tools. Implements #125249 Pull Request: https://projects.blender.org/blender/blender/pulls/125391