diff --git a/examples/common/imgui/imgui.cpp b/examples/common/imgui/imgui.cpp index 2942fd11..c965aba7 100644 --- a/examples/common/imgui/imgui.cpp +++ b/examples/common/imgui/imgui.cpp @@ -611,10 +611,7 @@ struct Imgui m_left = left; m_scroll = _scroll; - if (_inputChar > 0x80) - { - _inputChar = 0; - } + _inputChar = 0 > _inputChar ? 0 : _inputChar; m_lastChar = m_char; m_char = _inputChar; }