Pengfei Zhu 60669a7dd8
swkbd: Fix a bug where clicking Cancel hangs the game (#5294)
* swkbd: Fix a bug where clicking Cancel hangs the game

The text is validated in `Finalize`. If the validation fails, an error is returned and the applet is not actually finalized. This can result in hangs.

This is usually not a problem as the frontend is expected to validate the text passed to `Finalize`. However, when the user clicked on `Cancel`, the text is ignored and the frontend won't do any validation. Therefore, we should skip the validation here as well.

Also fixed a potential data race. All these functions should now be called on the same thread

* Address review comments

Renamed the fields
Remove close button
2020-05-04 11:31:17 +02:00
..
2020-04-13 11:50:27 +01:00
2018-08-25 14:45:50 +02:00
2017-09-03 11:26:10 -06:00
2018-10-20 16:31:35 +02:00
2018-10-20 16:31:35 +02:00
2020-03-15 19:00:26 +01:00
2019-08-16 19:35:37 -06:00
2020-04-12 23:12:15 +01:00