From 9a18b09de34c9c260c77abdfcf7f81b898aad6ff Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 21 May 2022 14:22:34 -0700 Subject: [PATCH] bugfix: escape key to hide online help --- drawing.lua | 6 ------ main.lua | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drawing.lua b/drawing.lua index de311e1..3bc879e 100644 --- a/drawing.lua +++ b/drawing.lua @@ -524,12 +524,6 @@ function Drawing.keychord_pressed(chord) if drawing then drawing.show_help = true end - elseif chord == 'escape' and not love.mouse.isDown('1') then - for _,line in ipairs(Lines) do - if line.mode == 'drawing' then - line.show_help = false - end - end end end diff --git a/main.lua b/main.lua index ae6f0b2..668ec0f 100644 --- a/main.lua +++ b/main.lua @@ -186,6 +186,12 @@ function keychord_pressed(chord) if drawing then drawing.pending = {} end + elseif chord == 'escape' and not love.mouse.isDown('1') then + for _,line in ipairs(Lines) do + if line.mode == 'drawing' then + line.show_help = false + end + end elseif Current_drawing_mode == 'name' then if chord == 'return' then Current_drawing_mode = Previous_drawing_mode