proper focus and click behavior on input elements bound with readline