git-svn-id: svn://db.shs.com.ru/pip@555 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2017-11-20 14:32:19 +00:00
parent a1b95e6e66
commit 9f2c55de5b
4 changed files with 27 additions and 16 deletions

View File

@@ -700,7 +700,13 @@ bool TileInput::keyEvent(PIKbdListener::KeyEvent key) {
case PIKbdListener::F12:
break;
default:
text.insert(cur, PIChar(key.key));
PIChar tc
#ifdef WINDOWS
= PIChar(key.key);
#else
= PIChar::fromUTF8((char *)&(key.key));
#endif
text.insert(cur, tc);
cur++;
oo++;
if (cur - offset >= lwid - osp) offset += oo;