diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2025-05-06 15:02:35 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2025-05-06 15:02:35 -0700 |
commit | c5428b96d5f299a7fbcd9fa0c3c37ef7df683b0f (patch) | |
tree | b520f96a81d3f7a5eb9b0fea8b3815c6a0e8e5a3 /edit.lua | |
parent | 319cb9c6bf31a2c900160a82289e219d563d51e9 (diff) | |
parent | aba01abc23c791ece7607f167f3a98cb782dba53 (diff) | |
download | view.love-c5428b96d5f299a7fbcd9fa0c3c37ef7df683b0f.tar.gz |
Merge text.love
Diffstat (limited to 'edit.lua')
-rw-r--r-- | edit.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/edit.lua b/edit.lua index cc3437f..54b8aa9 100644 --- a/edit.lua +++ b/edit.lua @@ -124,7 +124,7 @@ end function edit.quit(State) end -function edit.mouse_press(State, x,y, mouse_button) +function edit.mouse_press(State, x,y, mouse_button, is_touch, presses) if State.search_term then return end State.mouse_down = mouse_button --? print_and_log(('edit.mouse_press: cursor at %d,%d'):format(State.cursor1.line, State.cursor1.pos)) @@ -169,7 +169,7 @@ function edit.mouse_press(State, x,y, mouse_button) State.selection1 = Text.final_loc_on_screen(State) end -function edit.mouse_release(State, x,y, mouse_button) +function edit.mouse_release(State, x,y, mouse_button, is_touch, presses) if State.search_term then return end --? print_and_log(('edit.mouse_release(%d,%d): cursor at %d,%d'):format(x,y, State.cursor1.line, State.cursor1.pos)) State.mouse_down = nil @@ -233,7 +233,7 @@ function edit.text_input(State, t) end end -function edit.keychord_press(State, chord, key) +function edit.keychord_press(State, chord, key, scancode, is_repeat) if State.selection1.line and -- printable character created using shift key => delete selection -- (we're not creating any ctrl-shift- or alt-shift- combinations using regular/printable keys) @@ -295,7 +295,7 @@ function edit.keychord_press(State, chord, key) App.set_clipboard(s) end else - Text.keychord_press(State, chord) + Text.keychord_press(State, chord, key, scancode, is_repeat) end end |