love2d-book icon indicating copy to clipboard operation
love2d-book copied to clipboard

Can't use arrow keys to scroll

Open kindfulkirby opened this issue 7 years ago • 2 comments
trafficstars

I can scroll using the mouse wheel or PgUp/Dn but not the arrow keys. It's not strictly speaking necessary, but really weird to not be able to do that.

Is something capturing and throwing away arrow key events?

Tested in Vivaldi (Chromium based) & Firefox on Linux.

kindfulkirby avatar Apr 28 '18 07:04 kindfulkirby

Hm, probably related to how the love.js/emscripten/SDL combination handles input. Does clicking in and out of canvas' change aynthing?

s-ol avatar Apr 28 '18 10:04 s-ol

Nevermind, I probably blocked them on purpose in a cheap way to prevent the page floating around when you test the samples:

https://github.com/love2d-community/love2d-book/blob/master/book/docinfo.html

This should be changed to apply only when one of the canvas' has focus.

s-ol avatar Apr 28 '18 10:04 s-ol