738 case KEY_BACKSPACE: |
738 case KEY_BACKSPACE: |
739 case '\b': |
739 case '\b': |
740 if (m_cursorPosition > 0) |
740 if (m_cursorPosition > 0) |
741 { |
741 { |
742 std::string& input = getEditableInput(); |
742 std::string& input = getEditableInput(); |
743 input.erase(input.begin() + m_cursorPosition); |
743 input.erase(input.begin() + m_cursorPosition - 1); |
744 m_cursorPosition -= 1; |
744 m_cursorPosition -= 1; |
745 m_needInputRender = true; |
745 m_needInputRender = true; |
746 } |
746 } |
747 break; |
747 break; |
748 |
748 |