Files
David Luzar 894589f399 feat(editor): keep editing text when the window loses focus (#12675)
Co-authored-by: Márk Tolmács <14922478+mtolmacs@users.noreply.github.com>
Co-authored-by: sahargavriely <63425950+sahargavriely@users.noreply.github.com>

* feat(editor): keep editing text when the window loses focus

The text editor submitted on any blur, the window's included: switching
to another tab or app and back ended the edit.

- submit only when the focus moves elsewhere in the document
- until the user types, and while the window is away, the editor shows
  the scene's text, so a change made in another tab or by a collaborator
  is there to go on from
- the editor closes when its element is deleted or removed from outside
- collab: a text being edited takes newer remote copies. Its editor holds
  the draft and writes it on top, so the clients end up on the same text
- excalidraw-app: the tab sync no longer ends a text edit

* fix(editor): keep the text editor open when the update that removed its element brings it back

The editor closes when its element is gone from the scene, deferred to
after the update. A reset followed by a load of the same scene removes
and restores the element in one go, and the deferred close then wrote the
draft over the restored text.
2026-11-19 13:08:26 +01:00
..
2025-01-16 16:59:11 +01:00