make the inputdialog support the default text

the default text is useful for me!