-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"CTRL+M" is captured as "Enter" in console app on Linux #73379
Comments
Tagging subscribers to this area: @dotnet/area-system-console Issue DetailsDescriptionIn .Net 6 vb.net Any other CTRL+ combinations seems to work fine e.g. "CTRL+L": I worked fine in .net core 2.2 Tried on OpenSUSE 15.3 and Debian 11 Linux boxes (also directly on the VGA/keyb console). .net runtime installation on the Linux box: Reproduction StepsDebug Expected behavior
Actual behaviorRead as Regression?No response Known WorkaroundsNo response ConfigurationNo response Other informationNo response
|
Can you try with the latest daily build of .NET 7? |
I will tomorrow....thanks for the suggestion. |
Ohhh....I see I need to reinstall (or at least update) my Visual Studio 2022 for 7.0 support, which I don't dare right now. It's my production PC :-/ |
You do not need to modify VS in any way. Installations of .NET are side by side. See https://github.com/dotnet/runtime/blob/main/docs/project/dogfooding.md You will just change the TargetFramework of your test project, by editing it directly. |
Hi @MrM40 Every Unix Terminal maps keys pressed by the user to their byte representation that .NET reads via The best utility for finding out the mappings is using In the following picture I've pressed As you can see, We have rewritten
This is by design. |
@adamsitnik |
Description
In .Net 6 vb.net
![image](https://user-images.githubusercontent.com/16258063/182876144-109cbc45-2331-499b-af00-8d0f556ce404.png)
Console.ReadKey()
read "CTRL+M" as "Enter"Any other CTRL+ combinations seems to work fine e.g. "CTRL+L":
![image](https://user-images.githubusercontent.com/16258063/182877294-a03245c0-9aa0-4ae3-9c74-51dd96176ebd.png)
I worked fine in .net core 2.2
Tried on OpenSUSE 15.3 and Debian 11 Linux boxes (also directly on the VGA/keyb console).
And tested nn these terminals: Kitty and Windows Terminal.
.net runtime installation on the Linux box:
![image](https://user-images.githubusercontent.com/16258063/182878580-cb1d41b1-6de1-48bf-90a5-cfbd0a5d29ce.png)
Reproduction Steps
Debug
Console.ReadKey()
and see what .net interpret the key keystroke CTRL+MExpected behavior
ConsoleKeyInfo.Modifiers
should beControl
and
ConsoleKeyInfo.Key
should beM
Actual behavior
Read as
Enter
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: