Prerequisites
Exception report
Screenshot
N/A
Environment data
PS Version: 7.3.0PS HostName: ConsoleHost (Windows Terminal)PSReadLine Version: 2.2.6PSReadLine EditMode: WindowsOS: 10.0.25262.1000 (WinBuild.160101.0800)BufferWidth: 120BufferHeight: 30
Steps to reproduce
- Launch PowerShell.
- Run
Set-PSReadLineKeyHandler -Chord 'Ctrl+Alt+?' -Function ShowKeyBindings. - Type "?".
Expected behavior
"?" is inserted into the command line.
Actual behavior
The list of key bindings appears. "?" is not inserted into the command line.
Notes
- After step 2,
Get-PSReadLineKeyHandler -Chord '?' returns a key binding same with Get-PSReadLineKeyHandler -Chord 'Ctrl+Alt+?'. - This bug is reproduced with Windows PowerShell 5.1 / PowerShell 7.3.0 on Windows Terminal / conhost.exe.
- This bug is reproduced for other functions such as
ShowCommandHelp - This bug is NOT reproduced for other keys such as 'Ctrl+Alt+K'.
Prerequisites
Exception report
N/AScreenshot
N/A
Environment data
Steps to reproduce
Set-PSReadLineKeyHandler -Chord 'Ctrl+Alt+?' -Function ShowKeyBindings.Expected behavior
"?" is inserted into the command line.
Actual behavior
The list of key bindings appears. "?" is not inserted into the command line.
Notes
Get-PSReadLineKeyHandler -Chord '?'returns a key binding same withGet-PSReadLineKeyHandler -Chord 'Ctrl+Alt+?'.ShowCommandHelp