Skip to content

Shift-ctrl-C sends interrupt if no text is selected #10253

Open

Description

@gpvos

Windows Terminal version (or Windows build number)

1.7.1033.0

Other Software

Both Command Prompt (10.0.19042.985) and Ubuntu (20.04.2 LTS). Probably others as well.

Steps to reproduce

  1. Make sure you have not selected any text.
  2. Be unaware of the above.
  3. Press shift-ctrl-C

Expected Behavior

Nothing happens. Alternatively, emptying the clipboard would also be acceptable, although less desirable.

Actual Behavior

Interrupt is sent to running program, as if ctrl-C is pressed. Suddenly and unexpectedly, I have to restart my program, or restart editing my command line. If I had wanted that, I'd have pressed ctrl-C, not the text copying command, which is something entirely different. Why would you conflate these two?

Activity

  1. ghost added
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on May 28, 2021
  2. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on May 28, 2021
  3. zadjii-msft commented on May 28, 2021

    @zadjii-msft
    Member

    I could have sworn we had another thread tracking this somewhere on the repo...

    This is how conhost behaves as well. So this is probably behavior that's existed for 20+ years now in the vintage console. Undoubtably, there's someone out there who's muscle memory now involves using ctrl+shift+c to send interrupts.

    Plus, since before 1.0, we've been shipping ctrl+c as copy in the user's settings.json by default. For all the users who still have that set (probably a large population), changing this behavior now would probably a pretty major breaking change. They wouldn't be able to send an interrupt at all anymore.

    The only possible thing I could think of as a solution here is

    • add another parameter to copy, neverPassThroughToClientApp, which would prevent the key from falling through to the client even when there's no selection
    • opt the defaults.json copy in to that setting, but not the userDefaults.json one.

    Though that sure does seem like a cludge. Any more clever solutions?

  4. gpvos commented on May 28, 2021

    @gpvos
    Author

    Sorry, I did search.

    I have a default install, but of a more recent version. I certainly did not change this key setting. In conhost, I used , so I was pretty happy with this new simpler key combination that is easier to remember than shift-insert or ctrl-insert where I keep forgetting which is which. In my memory, this used to not fall back to interrupt, and this behaviour changed somewhere in the last half year or so.

    In essence, yes, I am asking for a new parameter to the copy command, or a separate command. Changing the default is not necessary for me, but I do want to have this option.

  5. ghost added
    Needs-AttentionThe core contributors need to come back around and look at this ASAP.
    on May 28, 2021
  6. ghost removed
    Needs-Author-FeedbackThe original author of the issue/PR needs to come back and respond to something
    on May 28, 2021
  7. added
    Area-SettingsIssues related to settings and customizability, for console or terminal
    Area-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)
    Issue-TaskIt's a feature request, but it doesn't really need a major design.
    on May 28, 2021
  8. ghost removed
    Needs-Tag-FixDoesn't match tag requirements
    on May 28, 2021
  9. removed
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Jul 6, 2021
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

    Area-SettingsIssues related to settings and customizability, for console or terminalArea-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Issue-TaskIt's a feature request, but it doesn't really need a major design.Product-TerminalThe new Windows Terminal.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions