Skip to content

"CTRL+M" is captured as "Enter" in console app on Linux #73379

@MrM40

Description

@MrM40

Description

In .Net 6 vb.net Console.ReadKey() read "CTRL+M" as "Enter"
image

Any other CTRL+ combinations seems to work fine e.g. "CTRL+L":
image

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

Reproduction Steps

Debug Console.ReadKey() and see what .net interpret the key keystroke CTRL+M

Expected behavior

ConsoleKeyInfo.Modifiers should be Control
and
ConsoleKeyInfo.Key should be M

Actual behavior

Read as Enter

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions