mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
committed by
Jason Shirk
parent
0b7451bda3
commit
8d3f8537de
@@ -42,6 +42,12 @@ Describe "PSReadLine" -tags "CI" {
|
||||
(Get-PSReadLineKeyHandler | Where-Object { $_.Key -ceq "Alt+B" }).Function | Should Be SelectBackwardWord
|
||||
}
|
||||
|
||||
It "Should ignore case when using Function binding" {
|
||||
$lowerCaseFunctionName = "yank"
|
||||
Set-PSReadlineKeyHandler "Ctrl+F24" -Function $lowerCaseFunctionName
|
||||
(Get-PSReadlineKeyHandler | Where { $_.Key -eq "Ctrl+F24"}).Function | Should Be "Yank"
|
||||
}
|
||||
|
||||
AfterAll {
|
||||
Remove-Module PSReadLine
|
||||
|
||||
|
||||
Reference in New Issue
Block a user