diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-11-25 16:01:29 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-11-25 16:01:29 -0800 |
commit | 01c0b8e8475aa3bda44ad09dcb76fb0cb94d12d1 (patch) | |
tree | 8b616d50006364424cb11a11a92fc04e7a20930e | |
parent | aed0eb592af0a757d60710967c80ccd7c4ba2439 (diff) | |
parent | 9ed7c576e6731334cd9e36285b98a2703c6564e1 (diff) | |
download | view.love-01c0b8e8475aa3bda44ad09dcb76fb0cb94d12d1.tar.gz |
Merge lines.love
-rw-r--r-- | source_text.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source_text.lua b/source_text.lua index f60123e..c28e203 100644 --- a/source_text.lua +++ b/source_text.lua @@ -199,7 +199,14 @@ end 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 + if App.any_modifier_down() then + if App.key_down(t) then + -- The modifiers didn't change the key. Handle it in keychord_pressed. + return + else + -- Key mutated by the keyboard layout. Continue below. + end + end local before = snapshot(State, State.cursor1.line) --? print(State.screen_top1.line, State.screen_top1.pos, State.cursor1.line, State.cursor1.pos, State.screen_bottom1.line, State.screen_bottom1.pos) Text.insert_at_cursor(State, t) |