Skip to content

【功能建议】希望实现桌面端可用 Ctrl+C 复制文本 #321

Description

@TAKAYANORIKO

环境:dsh-desktop 0.7.2(内嵌 dsh 0.1.2-alpha.1),Windows

现象:在 DSH Desktop 桌面应用里,所有可选中文本用键盘 Ctrl+C 都无法复制;但右键 → 复制(走 webContents.copy())正常,且右键菜单标注的快捷键正是"Ctrl+C"。

关键定位:同一会话的 web 界面,用普通浏览器(Chrome/Edge)打开 http://127.0.0.1:<port>/?token=...,任何地方 Ctrl+C 都能正常复制。→ 说明问题在 Electron 桌面壳层,不在 web 应用/插件/模型。

已排查:主进程(out/main)无 before-input-event/globalShortcut;应用菜单 role:"copy" 写法标准;已装插件(wallet/market/undo/message-copy-enhance)均未拦截 Ctrl+C。窗口使用 titleBarStyle:"hidden" + titleBarOverlay,并叠加了一个 WebContentsView 菜单层——怀疑与自定义标题栏/视图层级对键盘快捷键路由的影响有关。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions