Fixes a small issue where you could try to insert a variable, but nothing happened because the editor was not focused :).