Fix behavior of delete key, when the cursor is at the end of the input line.
svn-id: r47802
This commit is contained in:
parent
17f198369d
commit
516d44e65c
1 changed files with 4 additions and 2 deletions
|
@ -341,8 +341,10 @@ void ConsoleDialog::handleKeyDown(Common::KeyState state) {
|
|||
break;
|
||||
}
|
||||
case Common::KEYCODE_DELETE:
|
||||
killChar();
|
||||
drawLine(pos2line(_currentPos));
|
||||
if (_currentPos < _promptEndPos) {
|
||||
killChar();
|
||||
drawLine(pos2line(_currentPos));
|
||||
}
|
||||
break;
|
||||
case Common::KEYCODE_PAGEUP:
|
||||
if (state.flags == Common::KBD_SHIFT) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue