Skip to content

Sequence CTRL+\ is not detected in some keyboard layouts #8458

@ojroques

Description

@ojroques

Environment

Windows build number: 10.0.19041.0
Windows Terminal version (if applicable): Windows Terminal Preview v1.5.3242.0

Edit: I've updated the description.

Here is the old one.

Steps to reproduce

  1. Try to use a mapping containing CTRL+\ in an application: for instance CTRL+\ CTRL+n in Neovim to quit the built-in terminal or by adding a new mapping in tmux.

Actual behavior

Nothing happens. It seems the CTRL+\ sequence is completely ignored by Windows Terminal. I'm using WSL1 with Ubuntu 20.04 but I've tried in Powershell and same issue. I've also tried with another terminal emulator (kitty) and CTRL+\ works fine there.

I found maybe related issues: #1288, #521 but they are marked resolved and I'm still getting the bug. Any idea why?

Steps to reproduce

  1. Change your keyboard layout to the UK extended layout
  2. Launch the Terminal and run showkey -a (I'm using Ubuntu 20.04 in WSL)
  3. Press CTRL-\

Actual behavior

Nothing happens. The CTRl-\ sequence goes undetected by the terminal. I've tried different layouts (US and French) and it works fine, so this issue seems tied to the choice of the keyboard layout.

Expected behavior

CTRL-\ is correctly detected. Maybe related issues: #1288, #521.

Metadata

Metadata

Assignees

Labels

Area-InputRelated to input processing (key presses, mouse, etc.)Area-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Issue-BugIt either shouldn't be doing this or needs an investigation.Priority-2A description (P2)Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions