Merge text.love
This commit is contained in:
commit
03e2e2b54d
2
edit.lua
2
edit.lua
|
@ -236,7 +236,7 @@ function edit.keychord_press(State, chord, key)
|
||||||
-- printable character created using shift key => delete selection
|
-- printable character created using shift key => delete selection
|
||||||
-- (we're not creating any ctrl-shift- or alt-shift- combinations using regular/printable keys)
|
-- (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
|
(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 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(chord) then
|
||||||
Text.delete_selection(State, State.left, State.right)
|
Text.delete_selection(State, State.left, State.right)
|
||||||
end
|
end
|
||||||
if State.search_term then
|
if State.search_term then
|
||||||
|
|
Loading…
Reference in New Issue