MoonshotAI / MoonshotAI/kimi-code
[Bug] 输入框鼠标选中文字时会复制到光标竖线
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.5k
- Forks
- 1.2k
- Avg merge
- 11h 53m
- Merged PRs (30d)
- 350
Description
Bug 描述
在输入框中输入文本后,使用鼠标拖选文字进行选择时,选中内容会包含输入框中的光标竖线(caret),导致复制出来的文本中混入了竖线字符。
复现步骤
- 在输入框中输入任意文本
- 使用鼠标拖选文字进行选择
- 复制选中的内容
- 粘贴后发现内容中包含了多余的光标竖线字符
期望行为
鼠标选中文字时,只选中文字内容,不应包含光标竖线(caret)。
环境信息
- 平台:macOS
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the selection and copy flow on macOS, then locate the TypeScript input component and its caret or selection handling. Verify the copied text from a mouse-selected range contains only the selected characters and no caret character.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100