Skip to content

Commit 236c622

Browse files
committed
Merge branch 'v2_3841-ConfigManager' of tig:tig/Terminal.Gui into v2_3841-ConfigManager
2 parents 5e9535c + dfb71c0 commit 236c622

File tree

11 files changed

+1600
-1486
lines changed

11 files changed

+1600
-1486
lines changed

Terminal.Gui/ConsoleDrivers/WindowsDriver.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,8 +1725,13 @@ private KeyCode MapKey (WindowsConsole.ConsoleKeyInfoEx keyInfoEx)
17251725
}
17261726
}
17271727

1728-
// Return the Key (not KeyChar!)
1729-
return (KeyCode)keyInfo.Key;
1728+
// If KeyInfo.Key is A...Z and KeyInfo.KeyChar is not a...z then we have an accent.
1729+
// 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;
17301735
}
17311736

17321737
// Handle control keys whose VK codes match the related ASCII value (those below ASCII 33) like ESC

0 commit comments

Comments
 (0)