automatically close receipt window on enter