about summary refs log tree commit diff stats
path: root/source_text.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2025-05-06 13:41:31 -0700
committerKartik K. Agaram <vc@akkartik.com>2025-05-06 14:14:55 -0700
commit11cd9123c15f9b9e76c359a8ac672c21f299811a (patch)
treee3a234e8df50ff96e1aa1f78eb612f3e1e6cc461 /source_text.lua
parentbac6c8ae8710099014236029d1fab1f71394a4c5 (diff)
downloadtext.love-11cd9123c15f9b9e76c359a8ac672c21f299811a.tar.gz
plumb through all supported args in LÖVE handlers
I just noticed that the is_touch arg in mouse handlers is extremely
useful for arbitrating between events on a mobile device. And I'd
totally forgotten about its existence X-(
Diffstat (limited to 'source_text.lua')
-rw-r--r--source_text.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/source_text.lua b/source_text.lua
index 284ed00..c281acf 100644
--- a/source_text.lua
+++ b/source_text.lua
@@ -223,7 +223,7 @@ function Text.insert_at_cursor(State, t)
 end
 
 -- Don't handle any keys here that would trigger text_input above.
-function Text.keychord_press(State, chord)
+function Text.keychord_press(State, chord, key, scancode, is_repeat)
 --?   print('chord', chord, State.selection1.line, State.selection1.pos)
   --== shortcuts that mutate text
   if chord == 'return' then