fix(file-manager): allow system paste while renaming#933
Merged
codexu merged 1 commit intocodexu:devfrom Mar 4, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
在文件管理器中打开笔记的同时重命名文件/文件夹,
Ctrl/Cmd+V无法将系统剪贴板文本粘贴到输入框。根因
文件管理器的全局
keydown快捷键处理会拦截Ctrl/Cmd+V,并触发文件级粘贴事件(filemanager-paste),导致输入框默认文本粘贴行为被preventDefault覆盖。变更
inputtextareaselectcontenteditablerole="textbox"影响
Ctrl/Cmd+V恢复为文本粘贴。验证
pnpm -s tsc --noEmit通过。Before
After