question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pressing FN key puts @ symbol in pwsh console

See original GitHub issue

Prerequisites

Steps to reproduce

When I press the Fn (Function) button on the MSI Raider GE76 gamer laptop in Powershell 7.3.4 the key returns an “@” symbol in text output. The Fn Key is used for miscellaneous functions such as, use of the Home,End, Sys Rq keys as well volume up, down and mute; screen brightness up and down; Airplain mode, and all secondary functions on the F-keys.

It’s most annoying due to when I want to press the home or end keys a string of “@” symbols appears till I let go of the Function key. I can press and hold the Function key in Notepad and it acts as expected.

The problem does not occur in the Terminal App that can be downloaded from the Windows Store.

Expected behavior

No output when the key is pressed at all.

Actual behavior

PS> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Error details

no errors

Environment data

Name                           Value
----                           -----
PSVersion                      7.3.4
PSEdition                      Core
GitCommitId                    7.3.4
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

Powershell

Issue Analytics

  • State:closed
  • Created 3 months ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kilasuitcommented, Jun 26, 2023

I can also repro this on My Lenovo Yoga S730 ( quite an old machine now) so isn’t just due to local machine configuration.

@whitequill please can you change the issue title to Pressing FN key puts @ symbol in pwsh console as that’s more fitting

0reactions
microsoft-github-policy-service[bot]commented, Aug 2, 2023

This issue is closed because it has been marked as requiring repro steps but has not had any activity for 7 days. If you think the issue is still relevant, please reopen and provide your feedback.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using PSReadLine key handlers - PowerShell
You can use the Set-PSReadLineKeyHandler cmdlet to bind a function to a key handler. The following command binds the MenuComplete function to ...
Read more >
Powershell script to press f5. Need Help With a Simple ...
Press F5 or, on the toolbar, click the Run Script icon, or on the Debug menu, click Run/Continue or, in the Console Pane,...
Read more >
How do you get F2-F12 Function Key input sent to a ...
when I press the F3 function key, it moves the focus away from the Terminal tab where the console app is running, into...
Read more >
How to Lock and Unlock Function (Fn) key in Windows 11/10
All you have to do is look on your keyboard and search for any key with a padlock symbol on it. Once you've...
Read more >
Console vs terminal vs shell. go to the File-> Preferences-> Se
Console vs terminal vs shell. go to the File-> Preferences-> Settings and search for 'executorMap' in search tab -> then click Code-runner:Executor Map...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found