diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2024-02-04 17:36:01 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2024-02-04 17:36:01 -0800 |
commit | 77e1b57446cdaae1853896d78f0dece6ee7a94cb (patch) | |
tree | b59042786081c135e5c8ca9e3f561415b03721ac /edit.lua | |
parent | 348852ee2bdeffee303ec4f8ce796e7605caa62d (diff) | |
parent | 1dbd734abb757c924d2f72b5eaa6663712962035 (diff) | |
download | view.love-77e1b57446cdaae1853896d78f0dece6ee7a94cb.tar.gz |
Merge lines.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 e28a493..5fa0472 100644 --- a/edit.lua +++ b/edit.lua @@ -271,7 +271,7 @@ function edit.keychord_press(State, chord, key) -- printable character created using shift key => delete selection -- (we're not creating any ctrl-shift- or alt-shift- combinations using regular/printable keys) (not App.shift_down() or utf8.len(key) == 1) and - chord ~= 'C-a' and chord ~= 'C-c' and chord ~= 'C-x' and chord ~= 'backspace' and chord ~= 'delete' and chord ~= 'C-z' and chord ~= 'C-y' and not App.is_cursor_movement(chord) then + chord ~= 'C-a' and chord ~= 'C-c' and chord ~= 'C-x' and chord ~= 'backspace' and chord ~= 'delete' and chord ~= 'C-z' and chord ~= 'C-y' and not App.is_cursor_movement(key) then Text.delete_selection(State, State.left, State.right) end if State.search_term then @@ -420,9 +420,9 @@ function edit.run_after_text_input(State, t) end -- not all keys are text_input -function edit.run_after_keychord(State, chord) - edit.keychord_press(State, chord) - edit.key_release(State, chord) +function edit.run_after_keychord(State, chord, key) + edit.keychord_press(State, chord, key) + edit.key_release(State, key) App.screen.contents = {} edit.update(State, 0) edit.draw(State) |