mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 03:47:07 -05:00
Imgui input now accepts, and interprets in the same way, 'delete' and 'backspace'.
This commit is contained in:
parent
97e9d2db6c
commit
a96ba40b03
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue