fix repeating backspace on iOS
This commit is contained in:
parent
511aace3f1
commit
086062791f
1
app.lua
1
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
|
||||
|
||||
|
|
1
main.lua
1
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
|
||||
|
|
Loading…
Reference in New Issue