mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-20 19:46:10 +08:00
Make the Fill tool's fill click operation cancellable (#1666)
* Make FillTool a draggable tool with abortable fills * Unify keyhints across tools * Apply suggestions from code review * Formatting * Fix FillTool when draged outside of shape's layer and add toolswitch abort --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Keavon Chambers
parent
343523ab34
commit
01da53eba0
@@ -253,6 +253,9 @@ pub fn default_mapping() -> Mapping {
|
||||
// FillToolMessage
|
||||
entry!(KeyDown(Lmb); action_dispatch=FillToolMessage::FillPrimaryColor),
|
||||
entry!(KeyDown(Lmb); modifiers=[Shift], action_dispatch=FillToolMessage::FillSecondaryColor),
|
||||
entry!(KeyUp(Lmb); action_dispatch=FillToolMessage::PointerUp),
|
||||
entry!(KeyDown(Rmb); action_dispatch=FillToolMessage::Abort),
|
||||
entry!(KeyDown(Escape); action_dispatch=FillToolMessage::Abort),
|
||||
//
|
||||
// BrushToolMessage
|
||||
entry!(PointerMove; action_dispatch=BrushToolMessage::PointerMove),
|
||||
|
||||
Reference in New Issue
Block a user