mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 15:39:02 +00:00
Remove arrow key behaviour as it's in MyGUI now
This commit is contained in:
parent
405c556ce9
commit
cb4664b31b
@ -1,6 +1,7 @@
|
||||
#include "console.hpp"
|
||||
|
||||
#include <MyGUI_EditBox.h>
|
||||
#include <MyGUI_InputManager.h>
|
||||
#include <MyGUI_LayerManager.h>
|
||||
|
||||
#include <boost/filesystem.hpp>
|
||||
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user