From 2650b2c9983065c99cda0c357bcae4e84b424779 Mon Sep 17 00:00:00 2001 From: Keavon Chambers Date: Fri, 7 May 2021 01:51:15 -0700 Subject: [PATCH] Fix "P" not switching to the Pen Tool --- core/editor/src/dispatcher/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/editor/src/dispatcher/mod.rs b/core/editor/src/dispatcher/mod.rs index 84cced13..90cbefee 100644 --- a/core/editor/src/dispatcher/mod.rs +++ b/core/editor/src/dispatcher/mod.rs @@ -66,6 +66,10 @@ impl Dispatcher { tool_name: ToolType::Line.to_string(), }); } + Key::KeyP => { + editor_state.tool_state.tool_data.active_tool_type = ToolType::Pen; + self.dispatch_response(ToolResponse::SetActiveTool { tool_name: ToolType::Pen.to_string() }); + } Key::KeyM => { editor_state.tool_state.tool_data.active_tool_type = ToolType::Rectangle; self.dispatch_response(ToolResponse::SetActiveTool {