Fix delete not working in text editors