GUI: Support unicode and BiDi in editable widget

This commit is contained in:
BLooperZ 2022-07-29 01:46:16 +03:00 committed by Eugene Sandulenko
parent 14e61b0590
commit b67b88e6d9
6 changed files with 46 additions and 25 deletions

View file

@ -92,7 +92,7 @@ public:
: EditTextWidget(boss, name, text, tooltip) {}
protected:
bool tryInsertChar(byte c, int pos) override {
bool tryInsertChar(Common::u32char_type_t c, int pos) override {
if (Common::isAlnum(c) || c == '-' || c == '_') {
_editString.insertChar(c, pos);
return true;