mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-24 10:09:32 -06:00
After typing into a text layer, clicking another panel (a solid in the Timeline, say) left the edit open, and the viewer took the keyboard back as soon as nothing had the focus: typed characters went into the text and Space added a space instead of playing. A click in any panel other than the viewers and the panels that format the selected characters (Character, Paragraph, Properties) now ends the edit with text.endEdit, so the text is kept and an empty layer the Type tool started is removed, and the viewer's text focus is surrendered. The editor takes the keyboard back only after a click in the viewer or one of those panels, no longer merely because nothing has the focus. A click elsewhere in the viewer still commits, and with the Type tool still starts new text. Test: clicking_another_panel_stops_typing_into_text, with the Type tool and with an edit started by command: Character > Faux Bold keeps the edit, its selection and typing; clicking the solid's Timeline row ends it, selects the solid, typed characters leave the text unchanged and Space plays; an empty Type-tool layer is removed. Fails on main.