sources/interface.cpp

changeset 187
53f9c7b2c068
parent 186
9330b93d9946
child 190
90bf9049e5eb
equal deleted inserted replaced
186:9330b93d9946 187:53f9c7b2c068
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

mercurial