Fixes cursor position when clicking in partially filled out input.

Fixes #6