bugfix: escape key to hide online help
This commit is contained in:
parent
a70d9a81dc
commit
9a18b09de3
|
@ -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
|
||||
|
||||
|
|
6
main.lua
6
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
|
||||
|
|
Loading…
Reference in New Issue