7ec92e1de5
On web the engine closes the text connection on the editing element's blur, which the browser fires just before the window blur, so the field is already unfocused when lifecycle inactive arrives and FocusManager's own suspend and resume restores only the route scope. Remember whether the composer held (or had just lost) focus when the window left, and refocus it on resume, keeping the caret and selection, unless another control took focus or a dialog, sheet or route covers the chat. Desktop hosts only, so phones never get an unasked on-screen keyboard.