end current edit when input loses focus