目录需求背景代码1. 单例事件循环的实现2. 事件循环的运行与关闭3. 定时器核心逻辑4. 启动与停止5. 使用示例设计亮点适用场景总结需求背景
I want to turn auto-correction on/off based on the content in the text field. For example, if the user is typing a phrase like \"Machine tools\" I want auto-correction to be on (for the rest of the w