Fixed focus loss on tab press in editor