We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 27e6a61 + 0ad9a1f commit f2b24c4Copy full SHA for f2b24c4
Terminal.Gui/ConsoleDrivers/WindowsDriver.cs
@@ -1725,8 +1725,13 @@ private KeyCode MapKey (WindowsConsole.ConsoleKeyInfoEx keyInfoEx)
1725
}
1726
1727
1728
- // Return the Key (not KeyChar!)
1729
- return (KeyCode)keyInfo.Key;
+ // If KeyInfo.Key is A...Z and KeyInfo.KeyChar is not a...z then we have an accent.
+ // See https://github.com/gui-cs/Terminal.Gui/issues/3807#issuecomment-2455997595
1730
+ if (keyInfo.KeyChar <= (char)'z')
1731
+ {
1732
+ return (KeyCode)keyInfo.Key;
1733
+ }
1734
+ return (KeyCode)keyInfo.KeyChar;
1735
1736
1737
// Handle control keys whose VK codes match the related ASCII value (those below ASCII 33) like ESC
0 commit comments