diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-12-24 19:19:54 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-12-24 19:24:48 -0800 |
commit | 53fbb905e3383855f954f1f7ff46b1b427ef3945 (patch) | |
tree | 5d7d59a267755f9dccf4679524c0169286cfde1f | |
parent | f351ee2f8f87fc8f84385ba1215be4e56f805ada (diff) | |
download | text.love-53fbb905e3383855f954f1f7ff46b1b427ef3945.tar.gz |
typo
-rw-r--r-- | edit.lua | 2 | ||||
-rw-r--r-- | source_edit.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/edit.lua b/edit.lua index 4d36780..4bee708 100644 --- a/edit.lua +++ b/edit.lua @@ -304,7 +304,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 backspace ~= 'delete' 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 not App.is_cursor_movement(chord) then Text.delete_selection(State, State.left, State.right) end if State.search_term then diff --git a/source_edit.lua b/source_edit.lua index f9722eb..09590be 100644 --- a/source_edit.lua +++ b/source_edit.lua @@ -314,7 +314,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 backspace ~= 'delete' 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 not App.is_cursor_movement(chord) then Text.delete_selection(State, State.left, State.right) end if State.search_term then |