The Computer Oracle

Shift+Space not working in Powershell

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Quirky Dreamscape Looping

--

Chapters
00:00 Shift+Space Not Working In Powershell
00:59 Accepted Answer Score 20
01:40 Answer 2 Score 13
02:17 Thank you

--

Full question
https://superuser.com/questions/1365875/...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows10 #powershell #windows10v1809

#avk47



ACCEPTED ANSWER

Score 20


It seems like you need to update the PowerShellGet and PSReadLine Module to make shift+space work again.

  1. Open PowerShell as admin
  2. Run install-module -name powershellget -force
  3. Restart PowerShell (as admin)
  4. Run install-module -name psreadline -allowprerelease -force
  5. Restart PowerShell again

This should do it and it should work again.

Source: https://www.reddit.com/r/sysadmin/comments/9n9mh0/powershell_51_shiftspace_problem/




ANSWER 2

Score 13


This seems to be "broken" again in PowerShell 5.1.x. That is, Get-PSReadLineKeyHandler shows no mapping associated with Shift+Spacebar, and pressing shift+space has no effect whatsoever.

Explicitly enabling it with Set-PSReadLineKeyHandler -Chord Shift+Spacebar -Function SelfInsert fixes the issue (pressing shift+space inserts space character), but the mapping will not show in the Get-PSReadLineKeyHandler listing as is, but as plain Space mapping.