Fix "P" not switching to the Pen Tool

This commit is contained in:
Keavon Chambers 2021-05-07 01:51:15 -07:00
parent 6adb984f2d
commit 2650b2c998
1 changed files with 4 additions and 0 deletions

View File

@ -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 {