Fix the issue when first char was not typed when prompt was unfocused.
Fix the issue when first char was not typed when prompt was unfocused.

vshatskyi/black-screen,railsware/upterm,black-screen/black-screen,shockone/black-screen,vshatskyi/black-screen,railsware/upterm,vshatskyi/black-screen,black-screen/black-screen,vshatskyi/black-screen,black-screen/black-screen,shockone/black-screen