Skip to content

[BUG REPORT] 复制快捷键设置为Crtl+C后,Crtl+C命令无法穿透到终端 #112

Closed

Description

@mio-J

Where

Windows

What happened

当我把复制快捷键设置为Crtl+C时,Crtl+C这个命令就完全无法传到终端了。
这个和Windows Terminal表现不一致,windows默认的终端默认是Crtl+C复制,同时也是可以正确地穿透命令的。

Steps to reproduce

1.设置复制快捷键为Crtl+C
2.输入命令 ping -t 127.0.0.1
3.按Crtl+C试图退出ping

What you expected

和Windows Terminal表现为一致 即可以穿透Crtl+C命令(能够识别是复制还是退出命令)

Commit or version

No response

Logs

Activity

  1. added
    bug
    on Nov 17, 2026
  2. Raiden-MeixElysia commented on Nov 17, 2026

    @Raiden-MeixElysia
    Contributor

    ctrl c和很多打断命令冲突。这个问题我后续看一下。

  3. added a commit that references this issue on Nov 18, 2026
  4. Raiden-MeixElysia commented on Nov 18, 2026

    @Raiden-MeixElysia
    Contributor

    已修复,随 0.2.6 发布。

    把复制绑定到 Ctrl-C 后:有选区时 Ctrl-C 复制选区;没有选区时,Ctrl-C 交给程序,ping -t 这类命令可以正常中断,和 Windows Terminal 一致。只有单独按住 Ctrl 的组合会这样交给程序(Ctrl-C、Ctrl-Insert);Ctrl-Shift-C 和 macOS 的 Cmd-C 在没有选区时仍然什么都不做,因为 Ctrl-Shift-C 交给程序也会变成中断。

    在 macOS 上复现过:绑定后一个捕获 INT 的 shell 收不到中断;修复后收到了 ^C,有选区时则复制了选中的文字。

  5. added 2 commits that reference this issue on Nov 18, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions