rchartra / NcCut

A GUI for visualizing and transecting 3D data.
https://nccut.readthedocs.io/en/latest/
4 stars 2 forks source link

No way to cancel drawing a transect chain #37

Open Huite opened 2 weeks ago

Huite commented 2 weeks ago

Related to: https://github.com/openjournals/joss-reviews/issues/7185

When drawing a transect, there seems to be no way of cancelling. Once you start drawing, you can only complete it by double-clicking. No distinction is made between the left and right mouse button (LMB / RMB): both add points, and double clicking "commits" the chain. Pressing escape does not cancel it.

I'm personally used to QGIS, and its linestring vector editing works as follows:

  1. Press LMB to add a vertex
  2. Press RMB to "commit"
  3. Press Escape to cancel the entire chain

I would avoid double-clicking for precision tasks, especially when you have good other options available. The risk with double clicking is that you shift the mouse between clicks, thereby making it two clicks instead of a double click. (Operating systems even need a setting to control what counts as a double click because if a user has motor control problems, double clicking is much more challenging than other mouse operations.)

rchartra commented 1 week ago

Currently, you can cancel drawing a chain by going Edit Mode -> Delete Last Line/Point, though I agree that having shortcuts for performing common actions like that would be nice. The QGIS editing shortcuts seem very reasonable so I'll implement those.