Skip to content

Commit b400647

Browse files
indierustyindierustyKeavon
authored
Fix Pen tool so it cancels (not confirms) a handle drag in which setting colinearity moves the other handle (#2439)
fix aborting executing a command in the pen tool Co-authored-by: indierusty <priyaayadav@gmail.com> Co-authored-by: Keavon Chambers <keavon@keavon.com>
1 parent cabc027 commit b400647

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

editor/src/messages/input_mapper/input_mappings.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ pub fn input_mappings() -> Mapping {
255255
entry!(PointerMove; refresh_keys=[Control, Alt, Shift, KeyC], action_dispatch=PenToolMessage::PointerMove { snap_angle: Shift, break_handle: Alt, lock_angle: Control, colinear: KeyC, move_anchor_with_handles: Space }),
256256
entry!(KeyDown(MouseLeft); action_dispatch=PenToolMessage::DragStart { append_to_selected: Shift }),
257257
entry!(KeyUp(MouseLeft); action_dispatch=PenToolMessage::DragStop),
258-
entry!(KeyDown(MouseRight); action_dispatch=PenToolMessage::Confirm),
259-
entry!(KeyDown(Escape); action_dispatch=PenToolMessage::Confirm),
258+
entry!(KeyDown(MouseRight); action_dispatch=PenToolMessage::Abort),
259+
entry!(KeyDown(Escape); action_dispatch=PenToolMessage::Abort),
260260
entry!(KeyDown(Enter); action_dispatch=PenToolMessage::Confirm),
261261
entry!(KeyDown(Delete); action_dispatch=PenToolMessage::RemovePreviousHandle),
262262
entry!(KeyDown(Backspace); action_dispatch=PenToolMessage::RemovePreviousHandle),

0 commit comments

Comments
 (0)