Browse Source

simplified

Tig 8 months ago
parent
commit
0ad9a1f6d3
1 changed files with 1 additions and 7 deletions
  1. 1 7
      Terminal.Gui/ConsoleDrivers/WindowsDriver.cs

+ 1 - 7
Terminal.Gui/ConsoleDrivers/WindowsDriver.cs

@@ -1731,13 +1731,7 @@ internal class WindowsDriver : ConsoleDriver
             {
                 return (KeyCode)keyInfo.Key;
             }
-            else
-            {
-                return (KeyCode)keyInfo.KeyChar;
-            }
-
-            // Return the Key (not KeyChar!)
-            return (KeyCode)keyInfo.Key;
+            return (KeyCode)keyInfo.KeyChar;
         }
 
         // Handle control keys whose VK codes match the related ASCII value (those below ASCII 33) like ESC