From 086062791fdde1c5acc4bb1b330b64848d22ad4b Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 21 Nov 2023 22:58:16 -0800 Subject: [PATCH] fix repeating backspace on iOS --- app.lua | 1 + main.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/app.lua b/app.lua index 40bf7fa..6cb0536 100644 --- a/app.lua +++ b/app.lua @@ -74,6 +74,7 @@ function love.run() if OS == 'iOS' then love.keyboard.setTextInput(true) -- magic. iOS seems to lose textinput events after calls to setMode. -- https://github.com/love2d/love/issues/1959 + love.keyboard.setKeyRepeat(true) end end diff --git a/main.lua b/main.lua index 4a8a4d4..048a370 100644 --- a/main.lua +++ b/main.lua @@ -221,6 +221,7 @@ function App.keychord_press(chord, key) if OS == 'iOS' then love.keyboard.setTextInput(true) -- magic. iOS is prone to losing textinput events. -- https://github.com/love2d/love/issues/1959 + love.keyboard.setKeyRepeat(true) end -- ignore events for some time after window in focus (mostly alt-tab) if Current_time < Last_focus_time + 0.01 then