From a41d354a5196e7400e283315d1b411d32c66939c Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Sun, 6 Jan 2013 22:59:46 +0100 Subject: [PATCH] Fixed so delete key now deletes a value when in non-editing mode --- ogl_editor/src/Editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ogl_editor/src/Editor.c b/ogl_editor/src/Editor.c index 38756b8..ad33175 100644 --- a/ogl_editor/src/Editor.c +++ b/ogl_editor/src/Editor.c @@ -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)