Not sure where that idiom comes from or why strings work in some places (auto-coercion?). I picked it up off some example apps. But https://love2d.org/wiki/love.mouse.isDown says it should be an integer.
DRFE3B3ZKRG4RY2R5Q3SDFD3LH4EXUX3CZCDFBNAXVI2SLDS57PAC
Y2ZIPXEMMCY5GHJDDF7OMRKEQYMSDR5QTJDA7Y2SBOTHAJKHWVOAC
4VKEE43Z7MUPNIAOCK36INVBNHRTSWRRN37TIKRPXPH3DRKGHHAQC
LXTTOB33N2HCUZFIUDRQGGBVHK2HODRG4NBLH6RXRQZDCHF27BSAC
JFFUF5ALUWPDM7IEDEZVAYG2SVXO334STONRGKVB3QKY2TT5QGBQC
WAR3HXHTN7JZVV6TFMU2F3QYAG6NDH7DN7KKPTM2ICEHRNQYP6PAC
ZLJGZYQGQ2S4UFWTVF4PQDSGMP6A4IS4GDHCMBAAA5SK2N2NWR3QC
RMKMPFT5L67WIFWIO4GTC6XESX6UPKNL4GPNQLOBC5CXSUZABEHQC
BYG5CEMVXANDTBI2ORNVMEY6K3EBRIHZHS4QBK27VONJC5537COQC
BULPIBEGL7TMK6CVIE7IS7WGAHGOSUJBGJSFQK542MOWGHP2ADQQC
4QQBMWLLIA42YP6FBFC445ABQH62RRJBL5KKILTERJALPOJCYK4QC
DHI6IJCNSTHGED67T6H5X6Y636C7PIDGIJD32HBEKLT5WIMRS5MAC
OTIBCAUJ3KDQJLVDN3A536DLZGNRYMGJLORZVR3WLCGXGO6UGO6AC
5FW7YOFTLKHRND6IOR4HG4X3C5BO2WV5KTEUW3PPKCRU5L5GXKXQC
LS55YKGWKICTQTAHR5KLMNDOL6CDI4ATT3NT5Z2YL5IM3CRQOONQC
65XHTZEKUTGHMOIWAFRH7ZVGUP4DWBCUT2TN4Y3LHYILKWTTBLKAC
IDG26SXKRKPRUQM3G2MMBQR3UZGNU7NCWJBBDKKIM5IGUNJQ2URQC
G3C4FKPRNQ35BW3YU2RAON6O2HZBLIVDASR6VP5BU4I4L37K24PAC
VCMS2CWTJDOW2FYCDH4ZSMVJAP6W4ZV4VWHJPPGGNHRX47GWYAGAC
BLWAYPKV3MLDZ4ALXLUJ25AIR6PCIL4RFYNRYLB26GFVC2KQBYBAC
RT6EV6OPUYCXYZOX2PHFXJ7KT77KHNEVINEGQXIQLHQVKPGTN6VQC
XNFTJHC4QSHNSIWNN7K6QZEZ37GTQYKHS4EPNSVPQCUSWREROGIQC
WTDKUACNTWB4KD34TZZNPILNX4FQ6MR64XYBAA5GOMICF73WLIAAC
YCDYGEZUKVVFRLV5TKF2VYPDXWIHDSZD32KINFARWAJX4X3JPSFAC
JAXPXLEBWHBLNLMZ5VCSO63X6Z5WT4KZKWBOVACCAVX4QJAWWNYQC
App.run_after_mouse_press(screen_left_margin+8,Margin_top+5, '1')
App.run_after_mouse_release(screen_left_margin+8,Margin_top+5, '1')
App.run_after_mouse_press(screen_left_margin+8,Margin_top+5, 1)
App.run_after_mouse_release(screen_left_margin+8,Margin_top+5, 1)
App.run_after_mouse_press(screen_left_margin+20,Margin_top+5, '1')
App.run_after_mouse_release(screen_left_margin+20,Margin_top+Line_height+5, '1')
App.run_after_mouse_press(screen_left_margin+20,Margin_top+5, 1)
App.run_after_mouse_release(screen_left_margin+20,Margin_top+Line_height+5, 1)
App.run_after_mouse_press(screen_left_margin+8,Margin_top+5, '1')
App.run_after_mouse_release(screen_left_margin+8,Margin_top+5, '1')
App.run_after_mouse_press(screen_left_margin+8,Margin_top+5, 1)
App.run_after_mouse_release(screen_left_margin+8,Margin_top+5, 1)
App.run_after_mouse_press(screen_left_margin+20,Margin_top+5, '1')
App.run_after_mouse_release(screen_left_margin+20,Margin_top+Line_height+5, '1')
App.run_after_mouse_press(screen_left_margin+20,Margin_top+5, 1)
App.run_after_mouse_release(screen_left_margin+20,Margin_top+Line_height+5, 1)
App.run_after_mouse_press(screen_left_margin+20,Margin_top+5, '1')
App.run_after_mouse_release(screen_left_margin+8,Margin_top+Line_height+5, '1')
App.run_after_mouse_press(screen_left_margin+20,Margin_top+5, 1)
App.run_after_mouse_release(screen_left_margin+8,Margin_top+Line_height+5, 1)
Old_cursor1, Old_selection1, Mousepress_shift = nil -- some extra state to compute selection between mousepress and mouserelease
Old_cursor1, Old_selection1, Mousepress_shift = nil -- some extra state to compute selection between mouse press and release
elseif App.mouse_down('1') and chord == 'p' and (Current_drawing_mode == 'polygon' or Current_drawing_mode == 'rectangle' or Current_drawing_mode == 'square') then
elseif App.mouse_down(1) and chord == 'p' and (Current_drawing_mode == 'polygon' or Current_drawing_mode == 'rectangle' or Current_drawing_mode == 'square') then