Remove-​PS​Readline​Key​Handler

Removes a key binding.

Syntax

Remove-PSReadlineKeyHandler
      [-Chord] <String[]>
      [-ViMode <ViMode>]
      [<CommonParameters>]

Description

The Remove-PSReadlineKeyHandler cmdlet removes a specified key binding. Create a key binding by running the Set-PSReadlineKeyHandler cmdlet.

Examples

Example 1: Remove a binding

PS C:\> Remove-PSReadlineKeyHandler -Chord "Shift+Ctrl+B"

This command removes the binding from the key combination, or chord, Ctrl+Shift+B. The Ctrl+Shift+B chord is created in the Set-PSReadlineKeyHandler topic.

Required Parameters

-Chord

Specifies an array of keys or sequences of keys to be removed. A single binding is specified by using a single string. If the binding is a sequence of keys, separate the keys by a comma, as in the following example:

"Ctrl+X,Ctrl+L"

This parameter accepts multiple strings. Each string is a separate binding, not a sequence of keys for a single binding.

Type:String[]
Aliases:Key
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-ViMode

{{Fill ViMode Description}}

Type:ViMode
Parameter Sets:Insert, Command
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

You cannot pipe objects to this cmdlet.