Fix error when hitting escape in read-only textboxes

This commit is contained in:
2023-10-13 19:56:55 +03:00
parent 18bf005654
commit 2d5ad297a5

View File

@@ -1399,6 +1399,12 @@ namespace FlaxEngine.GUI
}
case KeyboardKeys.Escape:
{
if (IsReadOnly)
{
SetSelection(_selectionEnd);
return true;
}
RestoreTextFromStart();
if (!IsNavFocused)