'Alt' prints '@' when it's remapped to an unassigned key code (vkE8 or vkFF)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Reproduce this in PowerShell 7.2 with PSReadLine enabled using the AutoHotkey vkE8 or vkFF mapping, then trace how those unassigned key signals are handled. Done means pressing the remapped Alt key produces no @ character, matching cmd.exe and PowerShell without PSReadLine.
Written by the indexing model from the issue text.
Description
I'm using Autohotkey to suppress the annoying menukey functionality of the Alt key (selecting menu items on a single press of Alt). However, in PowerShell with PSReadline enabled it prints @ symbols instead of printing nothing
(this bug report is a copy of https://github.com/PowerShell/PowerShell/issues/14357 where I learned that the culprit is PSReadline (I don't get any @ symbols when loading Powershell without this module))
Environment
PS version: 7.2.0-preview.1
PSReadline version: 2.2.0-beta1
os: 10.0.19041.320 (WinBuild.160101.0800)
PS file version: 7.2.0.0
HostName: ConsoleHost
BufferWidth: 127
BufferHeight: 30000
Steps to reproduce
Assign the following Autohotkey (this is for v2, in v1 omit the ' symbols) mapping to the Alt key:
~Alt::Send '{Blind}{vkE8}'
This sends an unassigned key signal that should do nothing, but has the benefit of masking the menukey functionality (vkFF has no mapping, but still bugs Powershell).
Press the Alt key
Expected behavior
Nothing should be printed, just like nothing is printed in all the other apps (cmd.exe console, old system powershell.exe console or any other GUI app)
Actual behavior
I get an @ symbol printed instead
@
- Dominant language
- C#
- Stars
- 4.4k
- Forks
- 341
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PowerShell/PSReadLine
-
Needs-Triage :mag:
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
PowerShell/PSReadLine#5205 ·
-
Needs-Triage :mag:
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
PowerShell/PSReadLine#5195 ·
-
Needs-Triage :mag:
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PowerShell/PSReadLine#5121 ·
-
Needs-Triage :mag:
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
PowerShell/PSReadLine#5045 ·
-
Area-CommandHelp Issue-Enhancement
Difficulty 1/5 Under an hour Newbie friendliness 68/100
PowerShell/PSReadLine#3470 · 3 reactions ·
All issues in PowerShell/PSReadLine
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 75/100
sillsdev/languageforge-lexbox#2665 ·
-
bug documentation frontend
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
azurenoops/spin_agent#975 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
:watch: Not Triaged 11.0 fundamentals/subsvc
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
dotnet/AspNetCore.Docs#37699 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SubtitleEdit/subtitleedit#15108 · 1 comment ·