On the Nexus six, with the google keyboard as its text input method, pressing backspace will result in LÖVE saying the button is being held down. It continues saying this even after text input is disabled and re-enabled. However, this problem does not occur on my LG G4, which uses the LG keyboard. I'm not sure if there is a workaround for this.
This code demonstrates the problem:
Code: Select all
function love.load()
love.keyboard.hasTextInput(true)
fon = love.graphics.newFont(16*love.window.getPixelScale())
love.graphics.setFont(fon)
end
function love.draw()
--VV This always dispays true once the backspace on the google keyboard is pressed
love.graphics.print(tostring(love.keyboard.isDown("backspace")), 0, 0 )
end