love.js
love.js copied to clipboard
Using preventDefault on a keyCode prevents that key from triggering love.textinput
Using preventDefault
on a keyCode
prevents that key from triggering love.textinput
. I learned this when I wasn't able to type any spaces in my game.
There is a very simple fix for this: Don't use preventDefault
.
I commented that part out and now it works, and I have had no issue with the page moving down, as long as the game has focus. So it might be unnecessary.
I'll test this out on some browsers and then remove preventDefault
if there is no effect.
I'll test this out on some browsers and then remove
preventDefault
if there is no effect.
This is still a problem now. We have a in-game console and need space
for commands