Send value to server on enter key, fix #1504