共用方式為


Remove-PSReadLineKeyHandler

拿掉索引鍵系結。

語法

Default (預設值)

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

Description

Remove-PSReadLineKeyHandler Cmdlet 會移除指定的索引鍵系結。

範例

範例 1:移除系結

Remove-PSReadLineKeyHandler -Chord Ctrl+B

這個指令會從按鍵組合或和弦中移除系結,Ctrl+BCtrl+B 文章中會建立 Set-PSReadLineKeyHandler 和弦。

參數

-Chord

指定要移除的索引鍵陣列或索引鍵序列。 使用單一字串來指定單一系結。 如果系結是一連串的索引鍵,請以逗號分隔索引鍵,如下列範例所示:

Ctrl+x,Ctrl+l

此參數接受字串數位。 每個字串都是個別的系結,而不是單一系結的索引鍵序列。

參數屬性

類型:

String[]

預設值:None
支援萬用字元:False
不要顯示:False
別名:鑰匙

參數集

(All)
Position:0
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-ViMode

指定系結所套用的vi模式。 可能的值為:Insert、Command。

參數屬性

類型:ViMode
預設值:None
接受的值:Insert, Command
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

CommonParameters

此 Cmdlet 支援一般參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters

輸入

None

您不能將物件透過管道傳送到此 Cmdlet。

輸出

None

此 Cmdlet 不會傳回任何輸出。