mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 11:18:12 +08:00
Fix "P" not switching to the Pen Tool
This commit is contained in:
@@ -66,6 +66,10 @@ impl Dispatcher {
|
|||||||
tool_name: ToolType::Line.to_string(),
|
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 => {
|
Key::KeyM => {
|
||||||
editor_state.tool_state.tool_data.active_tool_type = ToolType::Rectangle;
|
editor_state.tool_state.tool_data.active_tool_type = ToolType::Rectangle;
|
||||||
self.dispatch_response(ToolResponse::SetActiveTool {
|
self.dispatch_response(ToolResponse::SetActiveTool {
|
||||||
|
|||||||
Reference in New Issue
Block a user