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;
|
break;
|
||||||
}
|
}
|
||||||
case Common::KEYCODE_DELETE:
|
case Common::KEYCODE_DELETE:
|
||||||
|
if (_currentPos < _promptEndPos) {
|
||||||
killChar();
|
killChar();
|
||||||
drawLine(pos2line(_currentPos));
|
drawLine(pos2line(_currentPos));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case Common::KEYCODE_PAGEUP:
|
case Common::KEYCODE_PAGEUP:
|
||||||
if (state.flags == Common::KBD_SHIFT) {
|
if (state.flags == Common::KBD_SHIFT) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue