Fixed so delete key now deletes a value when in non-editing mode

This commit is contained in:
Daniel Collin 2013-01-06 22:59:46 +01:00
parent 0a94c588c5
commit a41d354a51

View File

@ -1383,7 +1383,7 @@ static bool doEditing(int key)
{
// special case if '.' key (in case of dvorak) would clatch with the same key for biasing we do this special case
if (key == '.' && !is_editing)
if ((key == '.' || key == EMGUI_KEY_BACKSPACE) && !is_editing)
return false;
if ((key >= '0' && key <= '9') || key == '.' || key == '-' || key == EMGUI_KEY_BACKSPACE)