Fix Text tool clearing text when hitting Escape by changing it to commit the edit instead (#2052)

* Text tool escape sends commit message

* Improve hint text

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
RyanRothweiler
2024-10-25 18:12:54 -07:00
committed by GitHub
co-authored by Keavon Chambers
parent 79408fc0cc
commit 63d44f22e3
2 changed files with 5 additions and 5 deletions
@@ -151,7 +151,7 @@ pub fn input_mappings() -> Mapping {
//
// TextToolMessage
entry!(KeyUp(MouseLeft); action_dispatch=TextToolMessage::Interact),
entry!(KeyDown(Escape); action_dispatch=TextToolMessage::Abort),
entry!(KeyDown(Escape); action_dispatch=TextToolMessage::CommitText),
entry!(KeyDown(Enter); modifiers=[Accel], action_dispatch=TextToolMessage::CommitText),
//
// GradientToolMessage