Returns true if the given container id is the one hosting the active preedit.
bool isPreeditInContainer(String containerId) { return _isComposing && _preeditContainerId == containerId; }