Skip to content

Ctrl-C doesn't work if PowerShell was started with Russian keyboard layout #1393

@ForNeVeR

Description

@ForNeVeR

Environment

PS version: 7.0.0
PSReadline version: 2.0.0
os: 10.0.18362.1 (WinBuild.160101.0800)
PS file version: 7.0.0.0
HostName: ConsoleHost
BufferWidth: 170
BufferHeight: 32766

Steps to reproduce

  1. Enable Russian keyboard layout on Windows (I use Alt-Shift to do that)
  2. Start PowerShell Core 7.0 (which includes PSReadLine 2.0)
  3. Press Ctrl-C in the shell

Expected behavior

Ctrl-C should terminate current command/input/whatever, it should work as Ctrl-C usually do.

Actual behavior

Russian letter "с" getting inserted into the command line, and no actual Ctrl-C behavior happens.

Ctrl-C is still broken even if I switch to the English keyboard layout (then English letter "c" gets inserted inctead of actual Ctrl-C behavior heppening).

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-PRA PR is opened targeting the issueIssue-BugIt either shouldn't be doing this or needs an investigation.Issue-KeyboardLayoutIssues related to dead keys with some keyboard layout.Issue-Usability

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions