diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-06-03 08:11:18 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-06-03 08:11:18 -0700 |
commit | 73cc12047e7eb8162c1f1a2f19be77bb821be85a (patch) | |
tree | 9e48f4e7cb46ae1877b2725d8276ddc5a2f277fb /app.lua | |
parent | 9efeae1f82738ecab185dae2d16a5e4c13f91aa0 (diff) | |
download | text.love-73cc12047e7eb8162c1f1a2f19be77bb821be85a.tar.gz |
select text using mouse drag
Doesn't yet highlight while dragging.
Diffstat (limited to 'app.lua')
-rw-r--r-- | app.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app.lua b/app.lua index d7f3c72..99c1cd2 100644 --- a/app.lua +++ b/app.lua @@ -204,6 +204,12 @@ function App.run_after_mousepress(x,y, button) App.draw() end +function App.run_after_mouserelease(x,y, button) + App.mousereleased(x,y, button) + App.screen.contents = {} + App.draw() +end + function App.screen.check(y, expected_contents, msg) --? print('checking for "'..expected_contents..'" at y '..tostring(y)) local screen_row = 'y'..tostring(y) |