diff --git a/apps/openmw/mwgui/console.cpp b/apps/openmw/mwgui/console.cpp index 9c7d1d5940..df4bdec5be 100644 --- a/apps/openmw/mwgui/console.cpp +++ b/apps/openmw/mwgui/console.cpp @@ -1,6 +1,7 @@ #include "console.hpp" #include +#include #include #include @@ -264,26 +265,6 @@ namespace MWGui mCommandLine->setTextCursor(0); } } - else if(key == MyGUI::KeyCode::ArrowRight) - { - const auto& caption = mCommandLine->getCaption(); - size_t pos = mCommandLine->getTextCursor(); - while(pos < caption.size() && (isWhitespace(caption[pos]) || caption[pos] == '-')) - pos++; - while(pos < caption.size() && !isWhitespace(caption[pos]) && caption[pos] != '-') - pos++; - mCommandLine->setTextCursor(pos); - } - else if(key == MyGUI::KeyCode::ArrowLeft) - { - const auto& caption = mCommandLine->getCaption(); - size_t pos = mCommandLine->getTextCursor(); - while(pos > 0 && (isWhitespace(caption[pos - 1]) || caption[pos - 1] == '>')) - pos--; - while(pos > 0 && !isWhitespace(caption[pos - 1]) && caption[pos - 1] != '>') - pos--; - mCommandLine->setTextCursor(pos); - } } else if(key == MyGUI::KeyCode::Tab) {