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:
parent
8ac5ecc67a
commit
a64a06c4bb
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue