Fixed 2d editor copying and pasting stuff when not in focus