From a7270bc0e05753d94347aba8098a9c2923579643 Mon Sep 17 00:00:00 2001 From: Isaiah Odhner Date: Fri, 25 Dec 2020 00:32:15 -0500 Subject: [PATCH] Fix setting line width for rounded rectangle I think I was being "efficient" with my regexp before switching it to use an enum for tool IDs. Not efficient with my time! This is why "dumb" code is better. --- src/app.js | 1 + src/speech-recognition.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/app.js b/src/app.js index 8923cbc..265f18d 100644 --- a/src/app.js +++ b/src/app.js @@ -479,6 +479,7 @@ $G.on("keydown", e => { selected_tool.id === TOOL_LINE || selected_tool.id === TOOL_CURVE || selected_tool.id === TOOL_RECTANGLE || + selected_tool.id === TOOL_ROUNDED_RECTANGLE || selected_tool.id === TOOL_ELLIPSE || selected_tool.id === TOOL_POLYGON ) { diff --git a/src/speech-recognition.js b/src/speech-recognition.js index def7ac1..77f0147 100644 --- a/src/speech-recognition.js +++ b/src/speech-recognition.js @@ -1699,6 +1699,7 @@ window.interpret_command = (input_text, default_to_entering_text)=> { selected_tool.id === TOOL_LINE || selected_tool.id === TOOL_CURVE || selected_tool.id === TOOL_RECTANGLE || + selected_tool.id === TOOL_ROUNDED_RECTANGLE || selected_tool.id === TOOL_ELLIPSE || selected_tool.id === TOOL_POLYGON ) {