diff --git a/shell/key-bindings-powershell.ps1 b/shell/key-bindings-powershell.ps1 index 4ae3443..633ad8f 100644 --- a/shell/key-bindings-powershell.ps1 +++ b/shell/key-bindings-powershell.ps1 @@ -10,6 +10,7 @@ Set-PSReadLineKeyHandler -Chord 'Ctrl+a' -ScriptBlock { [Microsoft.PowerShell.PSConsoleReadLine]::ClearKillRing() [Microsoft.PowerShell.PSConsoleReadLine]::BeginningOfLine() [Microsoft.PowerShell.PSConsoleReadLine]::KillLine() + [Microsoft.PowerShell.PSConsoleReadLine]::AcceptLine() $sa = "$env:USERPROFILE\AppData\Roaming\npm\node_modules\@microsoft\sa\build\index.js" if ($command) { @@ -23,5 +24,4 @@ Set-PSReadLineKeyHandler -Chord 'Ctrl+a' -ScriptBlock { if ($executedCommand) { [Microsoft.PowerShell.PSConsoleReadLine]::AddToHistory($executedCommand) } - [Microsoft.PowerShell.PSConsoleReadLine]::AcceptLine() } \ No newline at end of file