Ultimaker / Cura

3D printer / slicing GUI built on top of the Uranium framework
GNU Lesser General Public License v3.0
6.11k stars 2.06k forks source link

[Feature Request]: Escape should cancel drag #5929

Open lukehutch opened 5 years ago

lukehutch commented 5 years ago

When dragging an object in Cura (to translate/rotate etc.), Escape should cancel the drag. However, this does not currently work (in Linux at least).

This is particularly important because it's easy to accidentally move an object when you mean to rotate the view, given that different 3D programs assign different buttons to rotate. When you move an object, it destroys the current slicing, and you have to slice the object again.

nallath commented 5 years ago

Wouldn't it be better to be able to lock the object a better solution? Canceling a tool operation (and keeping the sliced object) is probably going to be a bit tricky, as we already apply the "in between" moves.

lukehutch commented 5 years ago

What about just remembering the start position/orientation when a drag is initiated, and if Escape is pressed, move back to the original position/orientation?

Locking is not a general fix, because I'm talking about avoiding inadvertent drags.

nallath commented 5 years ago

Well, that's what the ctrl + z does, but at that point, we already deleted the stored slice data.