Skip to content

Ctrl+Backspace keybinding doesn't work inside GH CLI #3206

@alexvy86

Description

@alexvy86

Describe the bug

I have several keybindings configured in my Powershell profile, and specifically the one for Ctrl-Backspace stops working inside Github Copilot CLI. All others keep working normally, but that one starts behaving like a regular backspace instead of deleting whole words.

These are some of the ones I have configured, and all confirmed working in Windows Terminal (pwsh profile) and also inside GHCLI, except Ctrl+Backspace:

Set-PSReadlineKeyHandler -Chord Ctrl+Backspace 	-Function BackwardKillWord;
Set-PSReadlineKeyHandler -Chord Ctrl+Delete    	-Function KillWord;
Set-PSReadlineKeyHandler -Chord Ctrl+u          -Function BackwardKillInput;
Set-PSReadlineKeyHandler -Chord Ctrl+k          -Function KillLine;
Set-PSReadlineKeyHandler -Chord Ctrl+LeftArrow 	-Function BackwardWord;
Set-PSReadlineKeyHandler -Chord Ctrl+RightArrow -Function NextWord;

Affected version

GitHub Copilot CLI 1.0.44-2

Steps to reproduce the behavior

  • Open pwsh.exe.
  • Configure the Ctrl+Backspace keybinding ( Set-PSReadlineKeyHandler -Chord Ctrl+Backspace -Function BackwardKillWord;)
  • Start the GH CLI
  • Ctrl+Backspace doesn't work as expected (always deletes single characters)

Expected behavior

Ctrl+Backspace continues working as BackwardKillWord.

Additional context

  • OS: WIndows
  • CPU architecture: x64
  • Terminal emulator: Windows Terminal
  • Shell: pwsh.exe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions