kaplayjs/kaplayground

feat: when reloading code with ctrl + s the window is still being focused

Closed this issue · 4 comments

preventing you from doing actions in your game as soon as you reload, kinda annoying

maybe a config flag for this? or should be the default behaviour? Because normally I don't want my game being focused while I'm for example editing UI stuff and I only want to see changes

Really what's happening (at least to me) is that sometimes it doesn't unfocus the coding windows properly, i think it's when you click to focus BEFORE the game loads, so there's that

I will put the behaviour of autofocus by default, if someone doesn't want it, you can use

kaboom({ focus: false })

fixed on: b5fa6e1