Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

356 B
Raw Blame
// 只将明确提交的文本输入作为恢复信号,避免提前结束仍在更新的输入法候选内容。
export const isCommittedTextInput = (event: Pick<InputEvent, "isComposing" | "inputType">) => {
    return event.isComposing === false &&
        ["insertText", "insertReplacementText", "insertFromComposition"].includes(event.inputType);
};