GUI: Support unicode and BiDi in editable widget
This commit is contained in:
parent
14e61b0590
commit
b67b88e6d9
6 changed files with 46 additions and 25 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue