fixed text input bug, was listening wrong event