Skip to content

Commit

Permalink
Automated JetBrains cleanup
Browse files Browse the repository at this point in the history
Co-authored-by:  <+@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Nov 27, 2023
1 parent 2bc157f commit 416bfca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Consolonia.PlatformSupport/CursesConsole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ private static readonly FlagTranslator<Key, ConsoleKey>
(Key.Tab, ConsoleKey.Tab),
// Proposed by ChatGPT, I've found supporting source: https://devblogs.microsoft.com/dotnet/console-readkey-improvements-in-net-7/
(Key.Unknown, ConsoleKey.NoName),
((Key)46,ConsoleKey.OemPeriod),
((Key)46, ConsoleKey.OemPeriod),
// rest is by chatGPT
((Key)44,ConsoleKey.OemComma),
((Key)44, ConsoleKey.OemComma),
((Key)59, ConsoleKey.Oem1),
((Key)47, ConsoleKey.Oem2), // Oem2 usually represents the '/' key
((Key)92, ConsoleKey.Oem5), // Oem5 usually represents the '\\' key
Expand Down Expand Up @@ -400,10 +400,10 @@ private void RaiseKeyPressInternal(Key key)
char character;
ConsoleKey consoleKey =
KeyFlagTranslator.Translate(key & ~Key.CtrlMask & ~Key.ShiftMask & ~Key.AltMask, true);
if (consoleKey == ConsoleKey.NoName)

if (consoleKey == ConsoleKey.NoName)
return;

if (consoleKey == default)
{
bool _ = Enum.TryParse(key.ToString(), true, out consoleKey);
Expand Down

0 comments on commit 416bfca

Please sign in to comment.