love.keyboard.isScancodeDown always returns true when window loses focus
When a key is released while the window has not focus love.keyboard.isScancodeDown continues to return true unless the same key is pressed and released once more.
that's how OS' event pump works in general, neither LÖVE nor SDL can do anything about it really
Which love version and operating system are you using? Does it happen with the latest love 12 build (via github actions)?
returns false for me on window focus lost, love 11.5 OS Name Microsoft Windows 11 Home Version 10.0.26100 Build 26100 video attached
https://github.com/user-attachments/assets/b2685f1e-0d33-4da1-a6dc-0c12b69d93f5
edit: I misinterpreted the problem, I tested releasing the key while window focus is lost, and it only updates when window focus is regained, as expected by OS event pumps (like keyboard presses)
Sorry for the late reply. LÖVE 11.5 on Windows 10.