Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

BackwardKillWord bound to Escape,Backspace not working

Aperta
#5,170 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
csharp, powershell
Ambito
cli

Direzione di ricerca

Start by reproducing the Escape,Backspace chord and inspecting the behavior reported by Get-PSReadLineKeyHandler. Trace the key-handler and terminal input handling for Backspace, comparing it with the working Escape,Delete binding. Done means Escape,Backspace invokes BackwardKillWord and deletes the preceding word without breaking the other Escape bindings.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Needs-Triage :mag:
Prerequisites
Steps to reproduce

I believe this is a default KeyHandler, but ESC-Backspace is no longer working for me. The other handlers using Escape all seem to work (ESC-u and ESC-l to upper/lowercase a word, ESC-b and ESC-f to move forward/backword by word, ESC-d to forward kill a word, etc.). But ESC-Backspace just does ... nothing.

I set a new handler for 'Escape,Delete' to do a BackwardKillWord and that works, so it seems the problem is something with my Escape key.

My backspace in a normal terminal sends a Ctrl-H. It's been that way for years, but this stopped working a couple months ago.

Expected behavior
Pressing Escape,Backspace should delete the word before the current cursor location.
Actual behavior
Nothing happens.
Error details
No error is produced.
Environment data
PS> get-psReadLineKeyHandler -Chord "Escape,Backspace"

Basic editing functions
=======================

Key              Function         Description
---              --------         -----------
Escape,Backspace BackwardKillWord Move the text from the start of the current
                                  or previous word to the cursor to the kill
                                  ring
PS> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.6.2
PSEdition                      Core
GitCommitId                    7.6.2
OS                             macOS 14.8.7
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.4
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

No response

Lingua principale
C#
Stelle
4.4k
Fork
341
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PowerShell/PSReadLine

Tutte le issue di PowerShell/PSReadLine

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.