From a96ba40b03c690bf02eb8c50e2e7390e9964e1ba Mon Sep 17 00:00:00 2001 From: Dario Manesku Date: Fri, 6 Mar 2015 00:15:40 +0100 Subject: [PATCH] Imgui input now accepts, and interprets in the same way, 'delete' and 'backspace'. --- examples/common/imgui/imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/common/imgui/imgui.cpp b/examples/common/imgui/imgui.cpp index 7fa19965b..cdd918c0f 100644 --- a/examples/common/imgui/imgui.cpp +++ b/examples/common/imgui/imgui.cpp @@ -1405,7 +1405,7 @@ struct Imgui { const size_t cursor = size_t(strlen(_str)); - if (m_char == 0x08) //backspace + if (m_char == 0x08 || m_char == 0x7f) //backspace or delete { _str[cursor-1] = '\0'; }