aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/interface.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp
index 8ff5d2d4ef..b13bf94650 100644
--- a/engines/saga/interface.cpp
+++ b/engines/saga/interface.cpp
@@ -1189,8 +1189,14 @@ bool Interface::processTextInput(Common::KeyState keystate) {
_textInputPos++;
}
break;
+ case Common::KEYCODE_HOME:
+ _textInputPos = 1;
+ break;
+ case Common::KEYCODE_END:
+ _textInputPos = _textInputStringLength + 1;
+ break;
default:
- if (isalnum(keystate.ascii) || (keystate.ascii == ' ') ||
+ if (keystate.ascii <= 255 && isalnum(keystate.ascii) || (keystate.ascii == ' ') ||
(keystate.ascii == '-') || (keystate.ascii == '_')) {
if (_textInputStringLength < save_title_size - 1) {
ch[0] = keystate.ascii;