Add some hackery to work around the problem of textedit losing focus on click