Can't grab window focus when borderless

Godot Version



Why does this code snippet work when borderless is unchecked and doesn’t when it’s checked? When the game starts the player can’t move, the user must manually click with a mouse once to grab focus - I don’t want that, I want you to be able to move instantly.

Code snippet in question

func _ready():