about summary refs log tree commit diff stats
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua6
1 files changed, 6 insertions, 0 deletions
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