Skip to content

Wrong example in the doc for Set-PSReadLineKeyHandler #10480

@daxian-dbw

Description

@daxian-dbw

Prerequisites

  • Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
  • Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Typo in Get-Foo cmdlet" instead of "Typo."
  • Verify Version: If there is a mismatch between documentation and the behavior on your system, ensure that the version you are using is the same as the documentation. Check this box if they match or the issue you are reporting is not version specific.

Links

https://learn.microsoft.com/en-us/powershell/module/psreadline/set-psreadlinekeyhandler?view=powershell-7.3#example-2-bind-a-key-to-a-script-block

Summary

It should be Ctrl+b instead of Ctrl+B.
Ctrl+B requires pressing Ctrl+Shift+b, and Ctrl+b requires Ctrl+b. A user would expect the latter to work.

Details

No response

Suggested Fix

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions