Clear the current value when entering a new value in number input boxes.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 816
This commit is contained in:
Simon Howard 2007-01-05 23:36:35 +00:00
parent 8ac5ecc67a
commit a64a06c4bb
2 changed files with 2 additions and 2 deletions

View file

@ -175,7 +175,7 @@ static int TXT_IntInputBoxKeyPress(TXT_UNCAST_ARG(inputbox), int key)
{
if (key == KEY_ENTER)
{
SetBufferFromValue(inputbox);
strcpy(inputbox->buffer, "");
inputbox->editing = 1;
return 1;
}

View file

@ -295,7 +295,7 @@ static int TXT_SpinControlKeyPress(TXT_UNCAST_ARG(spincontrol), int key)
if (key == KEY_ENTER)
{
spincontrol->editing = 1;
SetBuffer(spincontrol);
strcpy(spincontrol->buffer, "");
return 1;
}
if (key == KEY_LEFTARROW)