Merge pull request #110 from mholo65/windows-backtab-fix

Handle shift-modifier if tab is pressed on System.Console and Windows drivers
This commit is contained in:
Miguel de Icaza
2018-07-05 17:18:41 -04:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -244,7 +244,7 @@ namespace Terminal.Gui {
case ConsoleKey.Escape:
return Key.Esc;
case ConsoleKey.Tab:
return Key.Tab;
return keyInfo.Modifiers == ConsoleModifiers.Shift ? Key.BackTab : Key.Tab;
case ConsoleKey.Home:
return Key.Home;
case ConsoleKey.End:

View File

@@ -604,7 +604,7 @@ namespace Terminal.Gui {
case ConsoleKey.Escape:
return Key.Esc;
case ConsoleKey.Tab:
return Key.Tab;
return keyInfo.Modifiers == ConsoleModifiers.Shift ? Key.BackTab : Key.Tab;
case ConsoleKey.Home:
return Key.Home;
case ConsoleKey.End: