Innei / Shiro

📜 A minimalist personal website embodying the purity of paper and freshness of snow.
https://innei.in
Other
3.28k stars 697 forks source link

评论时,中文输入法未选词时,按 command + enter,会发送评论。中文输入法会停留在选词框。 #410

Closed sheben404 closed 1 month ago

sheben404 commented 1 month ago

Describe the bug

复现步骤:

  1. 在评论框中切换中文输入法,输入英文字符,不要选中词
  2. 按 command + enter
  3. 此时会复现 bug:评论已发送,输入法停留在选词步骤

https://github.com/user-attachments/assets/f3fbf08a-e793-4214-aed9-af985028dccb

我准备提一个 pr 修复这个问题

Reproduction

见录屏(原仓库代码未改动复现)

System Info

System:
    OS: macOS 14.5
    CPU: (10) arm64 Apple M1 Pro
    Memory: 171.36 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.20.2 - ~/.nvm/versions/node/v16.20.2/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.20.2/bin/yarn
    npm: 8.19.4 - ~/.nvm/versions/node/v16.20.2/bin/npm
  Browsers:
    Chrome: 126.0.6478.185
    Edge: 127.0.2651.74
    Safari: 17.5

Used Package Manager

pnpm

Validations