Fix bug lost input cursor after deleting characters in Password widget.