diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-12-23 19:47:10 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-12-23 19:47:10 -0800 |
commit | 48541656304c49005e951f7d67f6b5e47485dd53 (patch) | |
tree | 3f7d4ea1def48bcfd7050591f45c38ba76daabce /source_text.lua | |
parent | 97fa2b0a7a397d94337fb6d514e0d2e0eb8022af (diff) | |
parent | e0448d7d7f1f6ec7ff88b222f59abe88503437e6 (diff) | |
download | view.love-48541656304c49005e951f7d67f6b5e47485dd53.tar.gz |
Merge lines.love
Diffstat (limited to 'source_text.lua')
-rw-r--r-- | source_text.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source_text.lua b/source_text.lua index 3e70343..71f4f7b 100644 --- a/source_text.lua +++ b/source_text.lua @@ -353,7 +353,7 @@ function Text.compute_fragmentsB(State, line_index, x) end end -function Text.textinput(State, t) +function Text.text_input(State, t) if App.mouse_down(1) then return end if App.ctrl_down() or App.alt_down() or App.cmd_down() then return end local before = snapshot(State, State.cursor1.line) @@ -381,8 +381,8 @@ function Text.insert_at_cursor(State, t) end end --- Don't handle any keys here that would trigger love.textinput above. -function Text.keychord_pressed(State, chord) +-- Don't handle any keys here that would trigger text_input above. +function Text.keychord_press(State, chord) --? print('chord', chord, State.selection1.line, State.selection1.pos) --== shortcuts that mutate text if chord == 'return' then |