From a501b5ea23c8b8b40e321454f81aedb141cd9cce Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 2 May 2022 06:59:41 -0700 Subject: [PATCH] ctrl- and alt- combinations --- main.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.lua b/main.lua index 16889c1..a061093 100644 --- a/main.lua +++ b/main.lua @@ -30,6 +30,12 @@ function love.keypressed(key, scancode, isrepeat) table.insert(lines, '') elseif key == 'space' then lines[#lines] = lines[#lines]..' ' + elseif key == 'lctrl' or key == 'rctrl' then + -- do nothing + elseif key == 'lalt' or key == 'ralt' then + -- do nothing + elseif love.keyboard.isDown('lctrl') or love.keyboard.isDown('rctrl') then + lines[#lines] = lines[#lines]..' aaa' else lines[#lines] = lines[#lines]..key end