Skip to content

Commit 0ad9a1f

Browse files
committed
simplified
1 parent adb917c commit 0ad9a1f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Terminal.Gui/ConsoleDrivers/WindowsDriver.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,13 +1731,7 @@ private KeyCode MapKey (WindowsConsole.ConsoleKeyInfoEx keyInfoEx)
17311731
{
17321732
return (KeyCode)keyInfo.Key;
17331733
}
1734-
else
1735-
{
1736-
return (KeyCode)keyInfo.KeyChar;
1737-
}
1738-
1739-
// Return the Key (not KeyChar!)
1740-
return (KeyCode)keyInfo.Key;
1734+
return (KeyCode)keyInfo.KeyChar;
17411735
}
17421736

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

0 commit comments

Comments
 (0)