The whole point of my keyboard shortcuts scheme is that if you press a regular key and the mouse is not down, it goes in at the cursor.
IHG5RXP5IZCDP5N4L3BHD4J6GB2MTU4FVLTKZR6EQW7HCGBSJL2AC
function mouse_in_drawing()
local x, y = love.mouse.getX(), love.mouse.getY()
for _,drawing in ipairs(lines) do
if drawing.mode == 'drawing' then
if y >= drawing.y and y < drawing.y + pixels(drawing.h) and x >= 16 and x < 16+drawingw then
return true
end
end
end
return false
end