# 水平线在编辑器中抢占了表情选择器的焦点

**URL:** <https://meta.discourse.org/t/horizontal-rule-steals-focus-from-emoji-picker-in-the-composer/403019>\
**Category:** Bug\
**Tags:** composer, emoji, fixed\
**Created:** [2026年五月15日 01:44 UTC](https://meta.discourse.org/t/horizontal-rule-steals-focus-from-emoji-picker-in-the-composer/403019 "2026-05-15T01:44:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ted](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ted/32/283882_2.png) [@ted](https://meta.discourse.org/u/ted)\
**Post date:** [2026年五月15日 01:44 UTC](https://meta.discourse.org/t/horizontal-rule-steals-focus-from-emoji-picker-in-the-composer/403019/1 "2026-05-15T01:44:24Z")

</div>

当光标位于水平分隔线前一行的行首并使用表情符号选择器时，按下 ↓ 会导致水平分隔线窃取焦点并关闭表情符号选择器。

**复现步骤：**

1. 在水平分隔线前一行的行首开始输入表情符号，等待表情符号选择器打开。
2. 按下 ↓。

**预期行为：**

表情符号选择器在选项之间循环切换。

**实际行为：**

水平分隔线获得焦点，表情符号选择器被关闭。

**屏幕录制：**

![horizontal-rule-focus-stealing](https://global.discourse-cdn.com/meta/original/4X/b/9/5/b95e52b0376589c8616c75d7036d47bf3f3460d9.gif)

---

<div class="post-metadata">

**Author:** ![ted](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ted/32/283882_2.png) [@ted](https://meta.discourse.org/u/ted)\
**Post date:** [2026年五月15日 02:33 UTC](https://meta.discourse.org/t/horizontal-rule-steals-focus-from-emoji-picker-in-the-composer/403019/2 "2026-05-15T02:33:38Z")

</div>

修复方案看起来很简单。只是不确定这是否会对 Composer 产生任何意外后果。目前 CI 已中断，但如果 Composer 的系统测试在我本地能通过的话。

---

<div class="post-metadata">

**Author:** ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)\
**Post date:** [2026年五月15日 06:52 UTC](https://meta.discourse.org/t/horizontal-rule-steals-focus-from-emoji-picker-in-the-composer/403019/3 "2026-05-15T06:52:39Z")

</div>

@renato 你怎么看？@一下以便查看。

---

<div class="post-metadata">

**Author:** ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)\
**Post date:** [2026年六月9日 23:49 UTC](https://meta.discourse.org/t/horizontal-rule-steals-focus-from-emoji-picker-in-the-composer/403019/4 "2026-06-09T23:49:04Z")

</div>

感谢 @ted 提交的报告和贡献！

该 PR 已合并。

---

<div class="post-metadata">

**Author:** ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)\
**Post date:** [2026年六月9日 23:49 UTC](https://meta.discourse.org/t/horizontal-rule-steals-focus-from-emoji-picker-in-the-composer/403019/5 "2026-06-09T23:49:34Z")

</div>


