From f0c4c8b82f25f77ebf1c2873af5859105dce6ec1 Mon Sep 17 00:00:00 2001 From: Andy Jordan <2226434+andyleejordan@users.noreply.github.com> Date: Wed, 6 Aug 2025 12:55:35 -0700 Subject: [PATCH 1/3] WIP: Modernizing CI --- .github/workflows/ci-test.yml | 50 ++++++++++++++++++++++++++++++ MockPSConsole/MockPSConsole.csproj | 6 ++-- PSReadLine.build.ps1 | 8 ++--- Polyfill/Polyfill.csproj | 6 ++-- README.md | 2 +- appveyor.yml | 26 ---------------- build.ps1 | 8 ++--- global.json | 7 +++++ nuget.config | 5 +-- test/ConsoleFixture.cs | 10 +++++- test/PSReadLine.Tests.csproj | 6 ++-- tools/helper.psm1 | 8 ++--- tools/installPSResources.ps1 | 20 ++++++++++++ 13 files changed, 108 insertions(+), 54 deletions(-) create mode 100644 .github/workflows/ci-test.yml delete mode 100644 appveyor.yml create mode 100644 global.json create mode 100644 tools/installPSResources.ps1 diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml new file mode 100644 index 000000000..1c99a5c7f --- /dev/null +++ b/.github/workflows/ci-test.yml @@ -0,0 +1,50 @@ +name: CI Tests + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + ci: + name: dotnet + strategy: + matrix: + os: [ windows-latest, macos-latest, ubuntu-latest ] + runs-on: ${{ matrix.os }} + env: + DOTNET_NOLOGO: true + DOTNET_GENERATE_ASPNET_CERTIFICATE: false + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install dotnet + uses: actions/setup-dotnet@v4 + with: + cache: true + cache-dependency-path: '**/*.csproj' + global-json-file: ./global.json + + - name: Install PSResources + shell: pwsh + run: ./tools/installPSResources.ps1 + + - name: Build, test, and package + shell: pwsh + run: Invoke-Build -Configuration Release -TestFramework net8.0 RunTests, ZipRelease + + - name: Upload build artifacts + if: always() + uses: actions/upload-artifact@v4 + with: + name: PSReadLine-module-${{ matrix.os }} + path: bin/Release/PSReadLine.zip + + - name: Upload test results + uses: actions/upload-artifact@v4 + if: always() + with: + name: PSReadLine-test-results-${{ matrix.os }} + path: test/TestResults/xUnitTestResults.en-US.xml diff --git a/MockPSConsole/MockPSConsole.csproj b/MockPSConsole/MockPSConsole.csproj index cebd3941d..351d5ed2d 100644 --- a/MockPSConsole/MockPSConsole.csproj +++ b/MockPSConsole/MockPSConsole.csproj @@ -4,7 +4,7 @@ Exe MockPSConsole MockPSConsole - net472;net6.0 + net472;net8.0 512 Program.manifest true @@ -14,8 +14,8 @@ - - + + diff --git a/PSReadLine.build.ps1 b/PSReadLine.build.ps1 index e245dfae3..ba917946c 100644 --- a/PSReadLine.build.ps1 +++ b/PSReadLine.build.ps1 @@ -19,7 +19,7 @@ param( [ValidateSet("Debug", "Release")] [string]$Configuration = (property Configuration Release), - [ValidateSet("net472", "net6.0")] + [ValidateSet("net472", "net8.0")] [string]$TestFramework, [switch]$CheckHelpContent @@ -31,7 +31,7 @@ Import-Module "$PSScriptRoot/tools/helper.psm1" $targetDir = "bin/$Configuration/PSReadLine" if (-not $TestFramework) { - $TestFramework = $IsWindows ? "net472" : "net6.0" + $TestFramework = $IsWindows ? "net472" : "net8.0" } function ConvertTo-CRLF([string] $text) { @@ -58,7 +58,7 @@ Synopsis: Build the Polyfiller assembly #> task BuildPolyfiller @polyFillerParams { exec { dotnet publish -c $Configuration -f 'netstandard2.0' Polyfill } - exec { dotnet publish -c $Configuration -f 'net6.0' Polyfill } + exec { dotnet publish -c $Configuration -f 'net8.0' Polyfill } } <# @@ -123,7 +123,7 @@ task LayoutModule BuildPolyfiller, BuildMainModule, { } Copy-Item "Polyfill/bin/$Configuration/netstandard2.0/Microsoft.PowerShell.PSReadLine.Polyfiller.dll" "$targetDir/netstd" -Force - Copy-Item "Polyfill/bin/$Configuration/net6.0/Microsoft.PowerShell.PSReadLine.Polyfiller.dll" "$targetDir/net6plus" -Force + Copy-Item "Polyfill/bin/$Configuration/net8.0/Microsoft.PowerShell.PSReadLine.Polyfiller.dll" "$targetDir/net6plus" -Force $binPath = "PSReadLine/bin/$Configuration/netstandard2.0/publish" Copy-Item $binPath/Microsoft.PowerShell.PSReadLine.dll $targetDir diff --git a/Polyfill/Polyfill.csproj b/Polyfill/Polyfill.csproj index 2cdccfbba..ea5103cac 100644 --- a/Polyfill/Polyfill.csproj +++ b/Polyfill/Polyfill.csproj @@ -3,7 +3,7 @@ Microsoft.PowerShell.PSReadLine.Polyfiller 1.0.0.0 - netstandard2.0;net6.0 + netstandard2.0;net8.0 true @@ -11,8 +11,8 @@ - - + + diff --git a/README.md b/README.md index d1ab3d11c..0b256ca35 100644 --- a/README.md +++ b/README.md @@ -160,7 +160,7 @@ The build script `build.ps1` can be used to bootstrap, build and test the projec * Build: `./build.ps1 -Configuration Debug` * Test: * Targeting .NET 4.7.2 (Windows only): `./build.ps1 -Test -Configuration Debug -Framework net472` - * Targeting .NET 6.0: `./build.ps1 -Test -Configuration Debug -Framework net6.0` + * Targeting .NET 6.0: `./build.ps1 -Test -Configuration Debug -Framework net8.0` After build, the produced artifacts can be found at `/bin/Debug`. diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index e989afe08..000000000 --- a/appveyor.yml +++ /dev/null @@ -1,26 +0,0 @@ - -image: Visual Studio 2022 - -environment: - POWERSHELL_TELEMETRY_OPTOUT: 1 - # Avoid expensive initialization of dotnet cli, see: http://donovanbrown.com/post/Stop-wasting-time-during-NET-Core-builds - DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 - PSREADLINE_TESTRUN: 1 - -cache: - - '%HOMEDRIVE%%HOMEPATH%\.nuget\packages -> tools\helper.psm1' - -install: - - pwsh: | - Write-Host "PS Version: $($PSVersionTable.PSVersion)" - ./build.ps1 -Bootstrap - -build_script: - - pwsh: | - ./build.ps1 -Configuration Release - -test_script: - - pwsh: ./build.ps1 -Test -Configuration Release -Framework net472 - -artifacts: - - path: .\bin\Release\PSReadLine.zip diff --git a/build.ps1 b/build.ps1 index 481f2a271..fc462364c 100644 --- a/build.ps1 +++ b/build.ps1 @@ -16,7 +16,7 @@ Build the main module with the default configuration (Debug) targeting 'netstandard2.0'. .EXAMPLE PS > .\build.ps1 -Test - Run xUnit tests with the default configuration (Debug) and the default target framework (net472 on Windows or net6.0 otherwise). + Run xUnit tests with the default configuration (Debug) and the default target framework (net472 on Windows or net8.0 otherwise). .PARAMETER Clean Clean the local repo, but keep untracked files. .PARAMETER Bootstrap @@ -28,10 +28,10 @@ .PARAMETER Framework The target framework when testing: - net472: run tests with .NET Framework - - net6.0: run tests with .NET 6.0 + - net8.0: run tests with .NET 6.0 When not specified, the target framework is determined by the current OS platform: - use 'net472' on Windows - - use 'net6.0' on Unix platforms + - use 'net8.0' on Unix platforms #> [CmdletBinding(DefaultParameterSetName = 'default')] param( @@ -48,7 +48,7 @@ param( [switch] $CheckHelpContent, [Parameter(ParameterSetName = 'test')] - [ValidateSet("net472", "net6.0")] + [ValidateSet("net472", "net8.0")] [string] $Framework, [Parameter(ParameterSetName = 'default')] diff --git a/global.json b/global.json new file mode 100644 index 000000000..4141e1966 --- /dev/null +++ b/global.json @@ -0,0 +1,7 @@ +{ + "sdk": { + "version": "8.0.405", + "rollForward": "latestFeature", + "allowPrerelease": false + } +} diff --git a/nuget.config b/nuget.config index a10ce9b3d..f003b0fbd 100644 --- a/nuget.config +++ b/nuget.config @@ -2,9 +2,6 @@ - + - - - diff --git a/test/ConsoleFixture.cs b/test/ConsoleFixture.cs index 47544dc2a..d9ff59259 100644 --- a/test/ConsoleFixture.cs +++ b/test/ConsoleFixture.cs @@ -52,6 +52,15 @@ public static IEnumerable GetKeyboardLayoutList() public static string GetKeyboardLayout() { + // In CI environments like GitHub Actions, keyboard layout detection can fail + // or return incorrect results. Default to en-US in these cases. + if (Environment.GetEnvironmentVariable("GITHUB_ACTIONS") == "true" || + Environment.GetEnvironmentVariable("TF_BUILD") == "true" || + !RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + { + return "en-US"; + } + var layout = GetKeyboardLayout(GetWindowThreadProcessId(GetForegroundWindow(), out var processId)); return GetLayoutNameFromHKL(layout); } @@ -100,4 +109,3 @@ public override string ToString() } } } - diff --git a/test/PSReadLine.Tests.csproj b/test/PSReadLine.Tests.csproj index 34598cbe9..70d0b9fe9 100644 --- a/test/PSReadLine.Tests.csproj +++ b/test/PSReadLine.Tests.csproj @@ -5,7 +5,7 @@ library UnitTestPSReadLine PSReadLine.Tests - net472;net6.0 + net472;net8.0 512 {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} False @@ -19,8 +19,8 @@ - - + + diff --git a/tools/helper.psm1 b/tools/helper.psm1 index a3ee18a87..9ffddaebf 100644 --- a/tools/helper.psm1 +++ b/tools/helper.psm1 @@ -215,7 +215,7 @@ function Start-TestRun $testResultFile = Join-Path $testResultFolder $testResultFile $stdOutput, $stdError = @(New-TemporaryFile; New-TemporaryFile) - $arguments = 'test', '--no-build', '-c', $Configuration, '-f', $Framework, '--filter', $filter, '--logger', "xunit;LogFilePath=$testResultFile" + $arguments = 'test', '--no-build', '-c', $Configuration, '-f', $Framework, '--filter', $filter, '--logger', "xunit;LogFilePath=$testResultFile", '--logger', 'console;verbosity=normal' Start-Process -FilePath dotnet -Wait -RedirectStandardOutput $stdOutput -RedirectStandardError $stdError -ArgumentList $arguments Get-Content $stdOutput, $stdError @@ -224,15 +224,14 @@ function Start-TestRun try { - $env:PSREADLINE_TESTRUN = 1 Push-Location "$RepoRoot/test" $xUnitTestExecuted = $true if ($IsWindowsEnv) { - if ($env:APPVEYOR -or $env:TF_BUILD) + if ($env:GITHUB_ACTIONS -or $env:TF_BUILD) { - # AppVeyor CI builder only has en-US keyboard layout installed. + # GitHub Actions CI builder only has en-US keyboard layout installed. # We have to run tests from a new process because `GetCurrentKeyboardLayout` simply fails when called from # the `pwsh` process started by AppVeyor. Our xUnit tests depends on `GetCurrentKeyboardLayout` to tell if # a test case should run. @@ -298,7 +297,6 @@ function Start-TestRun finally { Pop-Location - Remove-Item env:PSREADLINE_TESTRUN } } diff --git a/tools/installPSResources.ps1 b/tools/installPSResources.ps1 new file mode 100644 index 000000000..05a1138f8 --- /dev/null +++ b/tools/installPSResources.ps1 @@ -0,0 +1,20 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +param( + [ValidateSet("PSGallery", "CFS")] + [string]$PSRepository = "PSGallery" +) + +if ($PSRepository -eq "CFS" -and -not (Get-PSResourceRepository -Name CFS -ErrorAction SilentlyContinue)) { + Register-PSResourceRepository -Name CFS -Uri "https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/PowerShellGalleryMirror/nuget/v3/index.json" +} + +# NOTE: Due to a bug in Install-PSResource with upstream feeds, we have to +# request an exact version. Otherwise, if a newer version is available in the +# upstream feed, it will fail to install any version at all. +Install-PSResource -Verbose -TrustRepository -RequiredResource @{ + InvokeBuild = @{ + version = "5.12.1" + repository = $PSRepository + } +} From a661775cdec3813ae81902b0174a1b1c9f3e7bb1 Mon Sep 17 00:00:00 2001 From: Andy Jordan <2226434+andyleejordan@users.noreply.github.com> Date: Thu, 7 Aug 2025 15:18:53 -0700 Subject: [PATCH 2/3] WIP: Remove keyboard layout test logic It wasn't ever all wired up and is too costly to maintain. --- .github/workflows/ci-test.yml | 1 + test/ConsoleFixture.cs | 92 +- test/DeadKeyTest.cs | 2 +- test/Get-KeyInfoData.ps1 | 177 ---- test/KeyInfo-en-US-linux.json | 1654 ------------------------------- test/KeyInfo-en-US-windows.json | 1418 -------------------------- test/KeyInfo-fr-FR-windows.json | 1654 ------------------------------- test/KeyInfo-pl-PL-linux.json | 1647 ------------------------------ test/KeyInfo-pl-PL-windows.json | 1654 ------------------------------- test/KeyInfo-ru-RU-windows.json | 1654 ------------------------------- test/KeyboardLayouts.cs | 187 ++-- test/PSReadLine.Tests.csproj | 8 - test/UnitTestReadLine.cs | 34 +- test/xunit.runner.json | 6 + tools/helper.psm1 | 75 +- 15 files changed, 85 insertions(+), 10178 deletions(-) delete mode 100644 test/Get-KeyInfoData.ps1 delete mode 100644 test/KeyInfo-en-US-linux.json delete mode 100644 test/KeyInfo-en-US-windows.json delete mode 100644 test/KeyInfo-fr-FR-windows.json delete mode 100644 test/KeyInfo-pl-PL-linux.json delete mode 100644 test/KeyInfo-pl-PL-windows.json delete mode 100644 test/KeyInfo-ru-RU-windows.json create mode 100644 test/xunit.runner.json diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 1c99a5c7f..36a5119cd 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -34,6 +34,7 @@ jobs: - name: Build, test, and package shell: pwsh run: Invoke-Build -Configuration Release -TestFramework net8.0 RunTests, ZipRelease + continue-on-error: true - name: Upload build artifacts if: always() diff --git a/test/ConsoleFixture.cs b/test/ConsoleFixture.cs index d9ff59259..635cd284e 100644 --- a/test/ConsoleFixture.cs +++ b/test/ConsoleFixture.cs @@ -1,111 +1,23 @@ using System; -using System.Collections.Generic; -using System.Globalization; -using System.Runtime.InteropServices; -using System.Threading; -using Xunit; namespace Test { - public class WindowsConsoleFixtureHelper - { - [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] - static extern IntPtr LoadKeyboardLayout(string pwszKLID, uint Flags); - - [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] - static extern IntPtr GetKeyboardLayout(uint idThread); - - [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] - static extern int GetKeyboardLayoutList(int nBuff, [Out] IntPtr[] lpList); - - // For set: - [DllImport("user32.dll", CharSet = CharSet.Auto)] - public static extern bool PostMessage(IntPtr hWnd, int Msg, int wParam, int lParam); - - // For get: - [DllImport("user32.dll", SetLastError = true)] - static extern uint GetWindowThreadProcessId(IntPtr hWnd, out uint processId); - - [DllImport("user32.dll", SetLastError = true)] - static extern IntPtr GetForegroundWindow(); - - const int WM_INPUTLANGCHANGEREQUEST = 0x0050; - - private static string GetLayoutNameFromHKL(IntPtr hkl) - { - var lcid = (int)((uint)hkl & 0xffff); - return (new CultureInfo(lcid)).Name; - } - - public static IEnumerable GetKeyboardLayoutList() - { - int cnt = GetKeyboardLayoutList(0, null); - var list = new IntPtr[cnt]; - GetKeyboardLayoutList(list.Length, list); - - foreach (var layout in list) - { - yield return GetLayoutNameFromHKL(layout); - } - } - - public static string GetKeyboardLayout() - { - // In CI environments like GitHub Actions, keyboard layout detection can fail - // or return incorrect results. Default to en-US in these cases. - if (Environment.GetEnvironmentVariable("GITHUB_ACTIONS") == "true" || - Environment.GetEnvironmentVariable("TF_BUILD") == "true" || - !RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) - { - return "en-US"; - } - - var layout = GetKeyboardLayout(GetWindowThreadProcessId(GetForegroundWindow(), out var processId)); - return GetLayoutNameFromHKL(layout); - } - - public static IntPtr SetKeyboardLayout(string lang) - { - var layoutId = (new CultureInfo(lang)).KeyboardLayoutId; - var layout = LoadKeyboardLayout(layoutId.ToString("x8"), 0x80); - // Hacky, but tests are probably running in a console app and the layout change - // is ignored, so post the layout change to the foreground window. - PostMessage(GetForegroundWindow(), WM_INPUTLANGCHANGEREQUEST, 0, layoutId); - Thread.Sleep(500); - return layout; - } - } - public class ConsoleFixture : IDisposable { public KeyboardLayout KbLayout { get; private set; } - public string Lang { get; private set; } - public string Os { get; private set; } public ConsoleFixture() { - Lang = ""; - Os = ""; } - public void Initialize(string lang, string os) + public void Initialize() { - if (!string.Equals(lang, Lang) || !string.Equals(os, Os)) - { - Lang = lang; - Os = os; - KbLayout = new KeyboardLayout(lang, "windows"); - } + KbLayout = new KeyboardLayout(); } public void Dispose() { } - - public override string ToString() - { - return Lang + "-" + Os; - } } } diff --git a/test/DeadKeyTest.cs b/test/DeadKeyTest.cs index bf0c85b72..9c9640c65 100644 --- a/test/DeadKeyTest.cs +++ b/test/DeadKeyTest.cs @@ -8,7 +8,7 @@ public partial class ReadLine [SkippableFact] public void DeadKeyShouldBeIgnored() { - Skip.If(this.Fixture.Lang != "fr-FR", "The dead key test requires Keyboard layout to be set to 'fr-FR'"); + Skip.If(true, "The dead key test requires Keyboard layout to be set to 'fr-FR'"); TestSetup(KeyMode.Cmd); Test("aa", Keys("aa", _.DeadKey_Caret)); diff --git a/test/Get-KeyInfoData.ps1 b/test/Get-KeyInfoData.ps1 deleted file mode 100644 index bdeda4c8c..000000000 --- a/test/Get-KeyInfoData.ps1 +++ /dev/null @@ -1,177 +0,0 @@ -[CmdletBinding()] -param($maxKeys = 25) - -class KeyInfo -{ - KeyInfo([string]$k, [ConsoleKeyInfo]$ki, [bool]$investigate) - { - $this.Key = $k - $this.KeyChar = $ki.KeyChar - $this.ConsoleKey = $ki.Key - $this.Modifiers = $ki.Modifiers - $this.Investigate = $investigate - } - - [string]$Key - [string]$KeyChar - [string]$ConsoleKey - [string]$Modifiers - [bool]$Investigate -} - -$quit = $false - -function ReadOneKey { - param( - [string]$key, - [string]$prompt = 'Enter <{0}>' - ) - - function Test-ConsoleKeyInfos($k1, $k2, $key) { - if ($k1.Modifiers -ne $k2.Modifiers) { - # Some differences are OK - if ($key.Length -eq 1) { - # Don't care about Shift or Alt (because of AltGr), but - # Control should match - if ($k1.Modifiers -band [ConsoleModifiers]::Control -or - $k2.Modifiers -band [ConsoleModifiers]::Control) { - return $false - } - } - } - if ($k1.Key -ne $k2.Key) { - $keyOk = $false - switch -regex ($k1.Key,$k2.Key) { - '^Oem.*' { $keyOk = $true; break } - '^D[0-9]$' { $keyOk = $true; break } - '^NumPad[0-9]$' { $keyOk = $true; break } - } - if (!$keyOk) { - return $false - } - } - - return $k1.KeyChar -eq $k2.KeyChar - } - - $expectedKi = [Microsoft.PowerShell.ConsoleKeyChordConverter]::Convert($key)[0] - - Write-Host -NoNewline ("`n${prompt}: " -f $key) - $ki = [Console]::ReadKey($true) - if ($ki.KeyChar -ceq 'Q') { $script:quit = $true; return } - - $investigate = $false - $doubleChecks = 0 - while (!(Test-ConsoleKeyInfos $ki $expectedKi $key)) { - $doubleChecks++ - - if ($doubleChecks -eq 1) { - Write-Host -NoNewline "`nDouble checking that last result, enter <${k}> again: " - } else { - Write-Host -NoNewline "`nLast result not confirmed, enter to skip or enter <${k}> to try again: " - $investigate = $true - } - $kPrev = $ki - $ki = [Console]::ReadKey($true) - if ($ki.KeyChar -ceq 'Q') { $quit = $true; return } - if ($ki.Key -eq [ConsoleKey]::Spacebar) { - $ki = $kPrev - break - } - - if (Test-ConsoleKeyInfos $ki $kPrev $key) { - break - } - } - - return [KeyInfo]::new($key, $ki, $investigate) -} - -$setConsoleInputMode = $false -try -{ - if ($PSVersionTable.PSVersion.Major -lt 6 -or $IsWindows) - { - Add-Type @" - using System; - using System.Runtime.InteropServices; - - public class KeyInfoNativeMethods - { - [DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] - public static extern IntPtr GetStdHandle(int handleId); - - [DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] - public static extern bool GetConsoleMode(IntPtr hConsoleOutput, out uint dwMode); - - [DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] - public static extern bool SetConsoleMode(IntPtr hConsoleOutput, uint dwMode); - - public static uint GetConsoleInputMode() - { - var handle = GetStdHandle(-10); - uint mode; - GetConsoleMode(handle, out mode); - return mode; - } - - public static void SetConsoleInputMode(uint mode) - { - var handle = GetStdHandle(-10); - SetConsoleMode(handle, mode); - } - } -"@ - - [Flags()] - enum ConsoleModeInputFlags - { - ENABLE_PROCESSED_INPUT = 0x0001 - ENABLE_LINE_INPUT = 0x0002 - ENABLE_ECHO_INPUT = 0x0004 - ENABLE_WINDOW_INPUT = 0x0008 - ENABLE_MOUSE_INPUT = 0x0010 - ENABLE_INSERT_MODE = 0x0020 - ENABLE_QUICK_EDIT_MODE = 0x0040 - ENABLE_EXTENDED_FLAGS = 0x0080 - ENABLE_AUTO_POSITION = 0x0100 - ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x0200 - } - - $prevMode = [KeyInfoNativeMethods]::GetConsoleInputMode() - $mode = $prevMode -band - -bnot ([ConsoleModeInputFlags]::ENABLE_PROCESSED_INPUT -bor - [ConsoleModeInputFlags]::ENABLE_LINE_INPUT -bor - [ConsoleModeInputFlags]::ENABLE_WINDOW_INPUT -bor - [ConsoleModeInputFlags]::ENABLE_MOUSE_INPUT) - Write-Verbose "Setting mode $mode" - [KeyInfoNativeMethods]::SetConsoleInputMode($mode) - $setConsoleInputMode = $true - } - else { - [Console]::TreatControlCAsInput = $true - } - - $keyData = [System.Collections.Generic.List[KeyInfo]]::new() - - $keys = Get-Content $PSScriptRoot\keydata.txt - $keys = $keys | Get-Random -Count $keys.Count - for ($i = 0; $i -lt $keys.Count; $i++) { - $k = $keys[$i] - if ($k -ceq 'Q') { continue } - $ki = ReadOneKey $k - if ($quit) { break } - $keyData.Add($ki) - } -} -finally -{ - if ($setConsoleInputMode) { - [KeyInfoNativeMethods]::SetConsoleInputMode($prevMode) - } - else { - [Console]::TreatControlCAsInput = $false - } - - $keyData | ConvertTo-Json | Out-File -Encoding ascii KeyInfo.json -} diff --git a/test/KeyInfo-en-US-linux.json b/test/KeyInfo-en-US-linux.json deleted file mode 100644 index c107b6916..000000000 --- a/test/KeyInfo-en-US-linux.json +++ /dev/null @@ -1,1654 +0,0 @@ -[ - { - "Key": "Alt+Spacebar", - "KeyChar": " ", - "ConsoleKey": "Spacebar", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "L", - "KeyChar": "L", - "ConsoleKey": "L", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "$", - "KeyChar": "$", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "PageDown", - "KeyChar": "\u0000", - "ConsoleKey": "PageDown", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "}", - "KeyChar": "}", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "r", - "KeyChar": "r", - "ConsoleKey": "R", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+@", - "KeyChar": "\u0000", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+x", - "KeyChar": "\u0018", - "ConsoleKey": "X", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+i", - "KeyChar": "i", - "ConsoleKey": "I", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+Spacebar", - "KeyChar": "\u0000", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+F5", - "KeyChar": "\u0000", - "ConsoleKey": "F12", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F3", - "KeyChar": "\u0000", - "ConsoleKey": "F3", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F4", - "KeyChar": "\u0000", - "ConsoleKey": "F4", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+m", - "KeyChar": "\r", - "ConsoleKey": "Enter", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+o", - "KeyChar": "o", - "ConsoleKey": "O", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "<", - "KeyChar": "<", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+PageUp", - "KeyChar": "\u0000", - "ConsoleKey": "PageUp", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Backspace", - "KeyChar": "", - "ConsoleKey": "Backspace", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+5", - "KeyChar": "5", - "ConsoleKey": "D5", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+f", - "KeyChar": "\u0006", - "ConsoleKey": "F", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "M", - "KeyChar": "M", - "ConsoleKey": "M", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+z", - "KeyChar": "z", - "ConsoleKey": "Z", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+0", - "KeyChar": "0", - "ConsoleKey": "D0", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+k", - "KeyChar": "\u000b", - "ConsoleKey": "K", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "(", - "KeyChar": "(", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+q", - "KeyChar": "\u0011", - "ConsoleKey": "Q", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "S", - "KeyChar": "S", - "ConsoleKey": "S", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "D", - "KeyChar": "D", - "ConsoleKey": "D", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+?", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "f", - "KeyChar": "f", - "ConsoleKey": "F", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+]", - "KeyChar": "\u001d", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+h", - "KeyChar": "\b", - "ConsoleKey": "Backspace", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+UpArrow", - "KeyChar": "\u0000", - "ConsoleKey": "UpArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "R", - "KeyChar": "R", - "ConsoleKey": "R", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "F9", - "KeyChar": "\u0000", - "ConsoleKey": "F9", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+c", - "KeyChar": "\u0003", - "ConsoleKey": "C", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "End", - "KeyChar": "\u0000", - "ConsoleKey": "End", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "W", - "KeyChar": "W", - "ConsoleKey": "W", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "B", - "KeyChar": "B", - "ConsoleKey": "B", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "q", - "KeyChar": "q", - "ConsoleKey": "Q", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F2", - "KeyChar": "\u0000", - "ConsoleKey": "F2", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "m", - "KeyChar": "m", - "ConsoleKey": "M", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+m", - "KeyChar": "m", - "ConsoleKey": "M", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "I", - "KeyChar": "I", - "ConsoleKey": "I", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "6", - "KeyChar": "6", - "ConsoleKey": "D6", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "PageUp", - "KeyChar": "\u0000", - "ConsoleKey": "PageUp", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+8", - "KeyChar": "8", - "ConsoleKey": "D8", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+F8", - "KeyChar": "\u0000", - "ConsoleKey": "F12", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": ".", - "KeyChar": ".", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "b", - "KeyChar": "b", - "ConsoleKey": "B", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+2", - "KeyChar": "2", - "ConsoleKey": "D2", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": ";", - "KeyChar": ";", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+w", - "KeyChar": "w", - "ConsoleKey": "W", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+l", - "KeyChar": "l", - "ConsoleKey": "L", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "8", - "KeyChar": "8", - "ConsoleKey": "D8", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+s", - "KeyChar": "s", - "ConsoleKey": "S", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "F1", - "KeyChar": "\u0000", - "ConsoleKey": "F1", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+7", - "KeyChar": "7", - "ConsoleKey": "D7", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+9", - "KeyChar": "9", - "ConsoleKey": "D9", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+\\", - "KeyChar": "\u001c", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": ":", - "KeyChar": ":", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+1", - "KeyChar": "1", - "ConsoleKey": "D1", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+l", - "KeyChar": "\f", - "ConsoleKey": "L", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+g", - "KeyChar": "\u0007", - "ConsoleKey": "G", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "]", - "KeyChar": "]", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "g", - "KeyChar": "g", - "ConsoleKey": "G", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "u", - "KeyChar": "u", - "ConsoleKey": "U", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "H", - "KeyChar": "H", - "ConsoleKey": "H", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "C", - "KeyChar": "C", - "ConsoleKey": "C", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+g", - "KeyChar": "g", - "ConsoleKey": "G", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "i", - "KeyChar": "i", - "ConsoleKey": "I", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+r", - "KeyChar": "r", - "ConsoleKey": "R", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Shift+Home", - "KeyChar": "\u0000", - "ConsoleKey": "Home", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Alt+]", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Z", - "KeyChar": "Z", - "ConsoleKey": "Z", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "4", - "KeyChar": "4", - "ConsoleKey": "D4", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+d", - "KeyChar": "\u0004", - "ConsoleKey": "D", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Shift+RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+s", - "KeyChar": "\u0013", - "ConsoleKey": "S", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+=", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Backspace", - "KeyChar": "\b", - "ConsoleKey": "Backspace", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "k", - "KeyChar": "k", - "ConsoleKey": "K", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+Backspace", - "KeyChar": "", - "ConsoleKey": "Backspace", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "s", - "KeyChar": "s", - "ConsoleKey": "S", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "'", - "KeyChar": "'", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "l", - "KeyChar": "l", - "ConsoleKey": "L", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "\"", - "KeyChar": "\"", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+F3", - "KeyChar": "\u0000", - "ConsoleKey": "F15", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+-", - "KeyChar": "-", - "ConsoleKey": "Subtract", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+j", - "KeyChar": "j", - "ConsoleKey": "J", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "y", - "KeyChar": "y", - "ConsoleKey": "Y", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "&", - "KeyChar": "&", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": ",", - "KeyChar": ",", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+t", - "KeyChar": "\u0014", - "ConsoleKey": "T", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+v", - "KeyChar": "\u0016", - "ConsoleKey": "V", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Enter", - "KeyChar": "\r", - "ConsoleKey": "Enter", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "{", - "KeyChar": "{", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+<", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+End", - "KeyChar": "\u0000", - "ConsoleKey": "End", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+c", - "KeyChar": "c", - "ConsoleKey": "C", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Shift+Insert", - "KeyChar": "\u0000", - "ConsoleKey": "Insert", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+i", - "KeyChar": "\t", - "ConsoleKey": "Tab", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+j", - "KeyChar": "\r", - "ConsoleKey": "Enter", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+F2", - "KeyChar": "\u0000", - "ConsoleKey": "F12", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "3", - "KeyChar": "3", - "ConsoleKey": "D3", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "-", - "KeyChar": "-", - "ConsoleKey": "Subtract", - "Modifiers": "0", - "Investigate": true - }, - { - "Key": "@", - "KeyChar": "@", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+w", - "KeyChar": "\u0017", - "ConsoleKey": "W", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+Alt+?", - "KeyChar": "", - "ConsoleKey": "Backspace", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+t", - "KeyChar": "t", - "ConsoleKey": "T", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+Home", - "KeyChar": "\u0000", - "ConsoleKey": "Home", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Home", - "KeyChar": "\u0000", - "ConsoleKey": "Home", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "x", - "KeyChar": "x", - "ConsoleKey": "X", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "/", - "KeyChar": "/", - "ConsoleKey": "Divide", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+a", - "KeyChar": "a", - "ConsoleKey": "A", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "A", - "KeyChar": "A", - "ConsoleKey": "A", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "5", - "KeyChar": "5", - "ConsoleKey": "D5", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "d", - "KeyChar": "d", - "ConsoleKey": "D", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+F6", - "KeyChar": "\u0000", - "ConsoleKey": "F12", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "!", - "KeyChar": "!", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "=", - "KeyChar": "=", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Delete", - "KeyChar": "\u0000", - "ConsoleKey": "Delete", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Spacebar", - "KeyChar": " ", - "ConsoleKey": "Spacebar", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Y", - "KeyChar": "Y", - "ConsoleKey": "Y", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "z", - "KeyChar": "z", - "ConsoleKey": "Z", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Shift+RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "~", - "KeyChar": "~", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+>", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+PageDown", - "KeyChar": "\u0000", - "ConsoleKey": "F12", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+F9", - "KeyChar": "\u0000", - "ConsoleKey": "F12", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+F", - "KeyChar": "F", - "ConsoleKey": "F", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Alt+p", - "KeyChar": "p", - "ConsoleKey": "P", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Shift+Tab", - "KeyChar": "\t", - "ConsoleKey": "Tab", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+Backspace", - "KeyChar": "\u007f", - "ConsoleKey": "Backspace", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+Escape", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+F1", - "KeyChar": "\u0000", - "ConsoleKey": "F12", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "K", - "KeyChar": "K", - "ConsoleKey": "K", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+f", - "KeyChar": "f", - "ConsoleKey": "F", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "UpArrow", - "KeyChar": "\u0000", - "ConsoleKey": "UpArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "0", - "KeyChar": "0", - "ConsoleKey": "D0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "O", - "KeyChar": "O", - "ConsoleKey": "O", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": ")", - "KeyChar": ")", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F", - "KeyChar": "F", - "ConsoleKey": "F", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "v", - "KeyChar": "v", - "ConsoleKey": "V", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "n", - "KeyChar": "n", - "ConsoleKey": "N", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+4", - "KeyChar": "4", - "ConsoleKey": "D4", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+Enter", - "KeyChar": "\r", - "ConsoleKey": "Enter", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "e", - "KeyChar": "e", - "ConsoleKey": "E", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "G", - "KeyChar": "G", - "ConsoleKey": "G", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Delete", - "KeyChar": "\u0000", - "ConsoleKey": "Delete", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F5", - "KeyChar": "\u0000", - "ConsoleKey": "F5", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+Enter", - "KeyChar": "\r", - "ConsoleKey": "Enter", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+C", - "KeyChar": "\u0003", - "ConsoleKey": "C", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "DownArrow", - "KeyChar": "\u0000", - "ConsoleKey": "DownArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Tab", - "KeyChar": "\t", - "ConsoleKey": "Tab", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F6", - "KeyChar": "\u0000", - "ConsoleKey": "F6", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "#", - "KeyChar": "#", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+e", - "KeyChar": "e", - "ConsoleKey": "E", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "^", - "KeyChar": "^", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+n", - "KeyChar": "\u000e", - "ConsoleKey": "N", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "9", - "KeyChar": "9", - "ConsoleKey": "D9", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+End", - "KeyChar": "\u0000", - "ConsoleKey": "End", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+PageDown", - "KeyChar": "\u0000", - "ConsoleKey": "PageDown", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "E", - "KeyChar": "E", - "ConsoleKey": "E", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+v", - "KeyChar": "v", - "ConsoleKey": "V", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "*", - "KeyChar": "*", - "ConsoleKey": "Multiply", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Escape", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "o", - "KeyChar": "o", - "ConsoleKey": "O", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+z", - "KeyChar": "\u001a", - "ConsoleKey": "Z", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "F8", - "KeyChar": "\u0000", - "ConsoleKey": "F8", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+^", - "KeyChar": "\u001e", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "T", - "KeyChar": "T", - "ConsoleKey": "T", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+a", - "KeyChar": "\u0001", - "ConsoleKey": "A", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+o", - "KeyChar": "\u000f", - "ConsoleKey": "O", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+B", - "KeyChar": "B", - "ConsoleKey": "B", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "c", - "KeyChar": "c", - "ConsoleKey": "C", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+b", - "KeyChar": "\u0002", - "ConsoleKey": "B", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "?", - "KeyChar": "?", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "+", - "KeyChar": "+", - "ConsoleKey": "Add", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+x", - "KeyChar": "x", - "ConsoleKey": "X", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "a", - "KeyChar": "a", - "ConsoleKey": "A", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "w", - "KeyChar": "w", - "ConsoleKey": "W", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "_", - "KeyChar": "_", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+p", - "KeyChar": "\u0010", - "ConsoleKey": "P", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "J", - "KeyChar": "J", - "ConsoleKey": "J", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+.", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+_", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+k", - "KeyChar": "k", - "ConsoleKey": "K", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "P", - "KeyChar": "P", - "ConsoleKey": "P", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+F7", - "KeyChar": "\u0000", - "ConsoleKey": "F12", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "j", - "KeyChar": "j", - "ConsoleKey": "J", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Alt+y", - "KeyChar": "\u0019", - "ConsoleKey": "Y", - "Modifiers": "Alt, Control", - "Investigate": false - }, - { - "Key": "\\", - "KeyChar": "\\", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+6", - "KeyChar": "6", - "ConsoleKey": "D6", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+Shift+LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+3", - "KeyChar": "3", - "ConsoleKey": "D3", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "X", - "KeyChar": "X", - "ConsoleKey": "X", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+u", - "KeyChar": "u", - "ConsoleKey": "U", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Shift+PageUp", - "KeyChar": "\u0000", - "ConsoleKey": "F12", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+F8", - "KeyChar": "\u0000", - "ConsoleKey": "F19", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "V", - "KeyChar": "V", - "ConsoleKey": "V", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "2", - "KeyChar": "2", - "ConsoleKey": "D2", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "|", - "KeyChar": "|", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+y", - "KeyChar": "y", - "ConsoleKey": "Y", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+u", - "KeyChar": "\u0015", - "ConsoleKey": "U", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+Shift+Enter", - "KeyChar": "\r", - "ConsoleKey": "Enter", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+q", - "KeyChar": "q", - "ConsoleKey": "Q", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "U", - "KeyChar": "U", - "ConsoleKey": "U", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "`", - "KeyChar": "`", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+d", - "KeyChar": "d", - "ConsoleKey": "D", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "1", - "KeyChar": "1", - "ConsoleKey": "D1", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "N", - "KeyChar": "N", - "ConsoleKey": "N", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+F4", - "KeyChar": "\u0000", - "ConsoleKey": "F12", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "p", - "KeyChar": "p", - "ConsoleKey": "P", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+F3", - "KeyChar": "\u0000", - "ConsoleKey": "F12", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "7", - "KeyChar": "7", - "ConsoleKey": "D7", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+[", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "t", - "KeyChar": "t", - "ConsoleKey": "T", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+b", - "KeyChar": "b", - "ConsoleKey": "B", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "%", - "KeyChar": "%", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+DownArrow", - "KeyChar": "\u0000", - "ConsoleKey": "DownArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+n", - "KeyChar": "n", - "ConsoleKey": "N", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+_", - "KeyChar": "\u001f", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+e", - "KeyChar": "\u0005", - "ConsoleKey": "E", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "h", - "KeyChar": "h", - "ConsoleKey": "H", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+h", - "KeyChar": "h", - "ConsoleKey": "H", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+y", - "KeyChar": "\u0019", - "ConsoleKey": "Y", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+r", - "KeyChar": "\u0012", - "ConsoleKey": "R", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "[", - "KeyChar": "[", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": ">", - "KeyChar": ">", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F7", - "KeyChar": "\u0000", - "ConsoleKey": "F7", - "Modifiers": "0", - "Investigate": false - } -] diff --git a/test/KeyInfo-en-US-windows.json b/test/KeyInfo-en-US-windows.json deleted file mode 100644 index c0fcc65db..000000000 --- a/test/KeyInfo-en-US-windows.json +++ /dev/null @@ -1,1418 +0,0 @@ -[ - { - "Key": "\u0027", - "KeyChar": "\u0027", - "ConsoleKey": "Oem7", - "Modifiers": "0" - }, - { - "Key": "-", - "KeyChar": "-", - "ConsoleKey": "OemMinus", - "Modifiers": "0" - }, - { - "Key": "!", - "KeyChar": "!", - "ConsoleKey": "D1", - "Modifiers": "Shift" - }, - { - "Key": "\"", - "KeyChar": "\"", - "ConsoleKey": "Oem7", - "Modifiers": "Shift" - }, - { - "Key": "#", - "KeyChar": "#", - "ConsoleKey": "D3", - "Modifiers": "Shift" - }, - { - "Key": "$", - "KeyChar": "$", - "ConsoleKey": "D4", - "Modifiers": "Shift" - }, - { - "Key": "%", - "KeyChar": "%", - "ConsoleKey": "D5", - "Modifiers": "Shift" - }, - { - "Key": "\u0026", - "KeyChar": "\u0026", - "ConsoleKey": "D7", - "Modifiers": "Shift" - }, - { - "Key": "(", - "KeyChar": "(", - "ConsoleKey": "D9", - "Modifiers": "Shift" - }, - { - "Key": ")", - "KeyChar": ")", - "ConsoleKey": "D0", - "Modifiers": "Shift" - }, - { - "Key": "*", - "KeyChar": "*", - "ConsoleKey": "D8", - "Modifiers": "Shift" - }, - { - "Key": ",", - "KeyChar": ",", - "ConsoleKey": "OemComma", - "Modifiers": "0" - }, - { - "Key": ".", - "KeyChar": ".", - "ConsoleKey": "OemPeriod", - "Modifiers": "0" - }, - { - "Key": "/", - "KeyChar": "/", - "ConsoleKey": "Oem2", - "Modifiers": "0" - }, - { - "Key": ":", - "KeyChar": ":", - "ConsoleKey": "Oem1", - "Modifiers": "Shift" - }, - { - "Key": ";", - "KeyChar": ";", - "ConsoleKey": "Oem1", - "Modifiers": "0" - }, - { - "Key": "?", - "KeyChar": "?", - "ConsoleKey": "Oem2", - "Modifiers": "Shift" - }, - { - "Key": "@", - "KeyChar": "@", - "ConsoleKey": "D2", - "Modifiers": "Shift" - }, - { - "Key": "[", - "KeyChar": "[", - "ConsoleKey": "Oem4", - "Modifiers": "0" - }, - { - "Key": "\\", - "KeyChar": "\\", - "ConsoleKey": "Oem5", - "Modifiers": "0" - }, - { - "Key": "]", - "KeyChar": "]", - "ConsoleKey": "Oem6", - "Modifiers": "0" - }, - { - "Key": "^", - "KeyChar": "^", - "ConsoleKey": "D6", - "Modifiers": "Shift" - }, - { - "Key": "_", - "KeyChar": "_", - "ConsoleKey": "OemMinus", - "Modifiers": "Shift" - }, - { - "Key": "`", - "KeyChar": "`", - "ConsoleKey": "Oem3", - "Modifiers": "0" - }, - { - "Key": "{", - "KeyChar": "{", - "ConsoleKey": "Oem4", - "Modifiers": "Shift" - }, - { - "Key": "|", - "KeyChar": "|", - "ConsoleKey": "Oem5", - "Modifiers": "Shift" - }, - { - "Key": "}", - "KeyChar": "}", - "ConsoleKey": "Oem6", - "Modifiers": "Shift" - }, - { - "Key": "~", - "KeyChar": "~", - "ConsoleKey": "Oem3", - "Modifiers": "Shift" - }, - { - "Key": "+", - "KeyChar": "+", - "ConsoleKey": "OemPlus", - "Modifiers": "Shift" - }, - { - "Key": "\u003c", - "KeyChar": "\u003c", - "ConsoleKey": "OemComma", - "Modifiers": "Shift" - }, - { - "Key": "=", - "KeyChar": "=", - "ConsoleKey": "OemPlus", - "Modifiers": "0" - }, - { - "Key": "\u003e", - "KeyChar": "\u003e", - "ConsoleKey": "OemPeriod", - "Modifiers": "Shift" - }, - { - "Key": "0", - "KeyChar": "0", - "ConsoleKey": "D0", - "Modifiers": "0" - }, - { - "Key": "1", - "KeyChar": "1", - "ConsoleKey": "D1", - "Modifiers": "0" - }, - { - "Key": "2", - "KeyChar": "2", - "ConsoleKey": "D2", - "Modifiers": "0" - }, - { - "Key": "3", - "KeyChar": "3", - "ConsoleKey": "D3", - "Modifiers": "0" - }, - { - "Key": "4", - "KeyChar": "4", - "ConsoleKey": "D4", - "Modifiers": "0" - }, - { - "Key": "5", - "KeyChar": "5", - "ConsoleKey": "D5", - "Modifiers": "0" - }, - { - "Key": "6", - "KeyChar": "6", - "ConsoleKey": "D6", - "Modifiers": "0" - }, - { - "Key": "7", - "KeyChar": "7", - "ConsoleKey": "D7", - "Modifiers": "0" - }, - { - "Key": "8", - "KeyChar": "8", - "ConsoleKey": "D8", - "Modifiers": "0" - }, - { - "Key": "9", - "KeyChar": "9", - "ConsoleKey": "D9", - "Modifiers": "0" - }, - { - "Key": "a", - "KeyChar": "a", - "ConsoleKey": "A", - "Modifiers": "0" - }, - { - "Key": "A", - "KeyChar": "A", - "ConsoleKey": "A", - "Modifiers": "Shift" - }, - { - "Key": "Alt+-", - "KeyChar": "-", - "ConsoleKey": "OemMinus", - "Modifiers": "Alt" - }, - { - "Key": "Alt+.", - "KeyChar": ".", - "ConsoleKey": "OemPeriod", - "Modifiers": "Alt" - }, - { - "Key": "Alt+?", - "KeyChar": "?", - "ConsoleKey": "Oem2", - "Modifiers": "Alt, Shift" - }, - { - "Key": "Alt+_", - "KeyChar": "_", - "ConsoleKey": "OemMinus", - "Modifiers": "Alt, Shift" - }, - { - "Key": "Alt+\u003c", - "KeyChar": "\u003c", - "ConsoleKey": "OemComma", - "Modifiers": "Alt, Shift" - }, - { - "Key": "Alt+=", - "KeyChar": "=", - "ConsoleKey": "OemPlus", - "Modifiers": "Alt" - }, - { - "Key": "Alt+\u003e", - "KeyChar": "\u003e", - "ConsoleKey": "OemPeriod", - "Modifiers": "Alt, Shift" - }, - { - "Key": "Alt+0", - "KeyChar": "0", - "ConsoleKey": "D0", - "Modifiers": "Alt" - }, - { - "Key": "Alt+1", - "KeyChar": "1", - "ConsoleKey": "D1", - "Modifiers": "Alt" - }, - { - "Key": "Alt+2", - "KeyChar": "2", - "ConsoleKey": "D2", - "Modifiers": "Alt" - }, - { - "Key": "Alt+3", - "KeyChar": "3", - "ConsoleKey": "D3", - "Modifiers": "Alt" - }, - { - "Key": "Alt+4", - "KeyChar": "4", - "ConsoleKey": "D4", - "Modifiers": "Alt" - }, - { - "Key": "Alt+5", - "KeyChar": "5", - "ConsoleKey": "D5", - "Modifiers": "Alt" - }, - { - "Key": "Alt+6", - "KeyChar": "6", - "ConsoleKey": "D6", - "Modifiers": "Alt" - }, - { - "Key": "Alt+7", - "KeyChar": "7", - "ConsoleKey": "D7", - "Modifiers": "Alt" - }, - { - "Key": "Alt+8", - "KeyChar": "8", - "ConsoleKey": "D8", - "Modifiers": "Alt" - }, - { - "Key": "Alt+9", - "KeyChar": "9", - "ConsoleKey": "D9", - "Modifiers": "Alt" - }, - { - "Key": "Alt+a", - "KeyChar": "a", - "ConsoleKey": "A", - "Modifiers": "Alt" - }, - { - "Key": "Alt+B", - "KeyChar": "B", - "ConsoleKey": "B", - "Modifiers": "Alt, Shift" - }, - { - "Key": "Alt+b", - "KeyChar": "b", - "ConsoleKey": "B", - "Modifiers": "Alt" - }, - { - "Key": "Alt+Backspace", - "KeyChar": "\b", - "ConsoleKey": "Backspace", - "Modifiers": "Alt" - }, - { - "Key": "Alt+c", - "KeyChar": "c", - "ConsoleKey": "C", - "Modifiers": "Alt" - }, - { - "Key": "Alt+d", - "KeyChar": "d", - "ConsoleKey": "D", - "Modifiers": "Alt" - }, - { - "Key": "Alt+e", - "KeyChar": "e", - "ConsoleKey": "E", - "Modifiers": "Alt" - }, - { - "Key": "Alt+f", - "KeyChar": "f", - "ConsoleKey": "F", - "Modifiers": "Alt" - }, - { - "Key": "Alt+F", - "KeyChar": "F", - "ConsoleKey": "F", - "Modifiers": "Alt, Shift" - }, - { - "Key": "Alt+F1", - "KeyChar": "\u0000", - "ConsoleKey": "F1", - "Modifiers": "Alt" - }, - { - "Key": "Alt+F2", - "KeyChar": "\u0000", - "ConsoleKey": "F2", - "Modifiers": "Alt" - }, - { - "Key": "Alt+F3", - "KeyChar": "\u0000", - "ConsoleKey": "F3", - "Modifiers": "Alt" - }, - { - "Key": "Alt+F4", - "KeyChar": "\u0000", - "ConsoleKey": "F4", - "Modifiers": "Alt" - }, - { - "Key": "Alt+F5", - "KeyChar": "\u0000", - "ConsoleKey": "F5", - "Modifiers": "Alt" - }, - { - "Key": "Alt+F6", - "KeyChar": "\u0000", - "ConsoleKey": "F6", - "Modifiers": "Alt" - }, - { - "Key": "Alt+F7", - "KeyChar": "\u0000", - "ConsoleKey": "F7", - "Modifiers": "Alt" - }, - { - "Key": "Alt+F8", - "KeyChar": "\u0000", - "ConsoleKey": "F8", - "Modifiers": "Alt" - }, - { - "Key": "Alt+F9", - "KeyChar": "\u0000", - "ConsoleKey": "F9", - "Modifiers": "Alt" - }, - { - "Key": "Alt+g", - "KeyChar": "g", - "ConsoleKey": "G", - "Modifiers": "Alt" - }, - { - "Key": "Alt+h", - "KeyChar": "h", - "ConsoleKey": "H", - "Modifiers": "Alt" - }, - { - "Key": "Alt+i", - "KeyChar": "i", - "ConsoleKey": "I", - "Modifiers": "Alt" - }, - { - "Key": "Alt+j", - "KeyChar": "j", - "ConsoleKey": "J", - "Modifiers": "Alt" - }, - { - "Key": "Alt+k", - "KeyChar": "k", - "ConsoleKey": "K", - "Modifiers": "Alt" - }, - { - "Key": "Alt+l", - "KeyChar": "l", - "ConsoleKey": "L", - "Modifiers": "Alt" - }, - { - "Key": "Alt+m", - "KeyChar": "m", - "ConsoleKey": "M", - "Modifiers": "Alt" - }, - { - "Key": "Alt+n", - "KeyChar": "n", - "ConsoleKey": "N", - "Modifiers": "Alt" - }, - { - "Key": "Alt+o", - "KeyChar": "o", - "ConsoleKey": "O", - "Modifiers": "Alt" - }, - { - "Key": "Alt+p", - "KeyChar": "p", - "ConsoleKey": "P", - "Modifiers": "Alt" - }, - { - "Key": "Alt+q", - "KeyChar": "q", - "ConsoleKey": "Q", - "Modifiers": "Alt" - }, - { - "Key": "Alt+r", - "KeyChar": "r", - "ConsoleKey": "R", - "Modifiers": "Alt" - }, - { - "Key": "Alt+s", - "KeyChar": "s", - "ConsoleKey": "S", - "Modifiers": "Alt" - }, - { - "Key": "Alt+Spacebar", - "KeyChar": "\r", - "ConsoleKey": "Enter", - "Modifiers": "0" - }, - { - "Key": "Alt+t", - "KeyChar": "t", - "ConsoleKey": "T", - "Modifiers": "Alt" - }, - { - "Key": "Alt+u", - "KeyChar": "u", - "ConsoleKey": "U", - "Modifiers": "Alt" - }, - { - "Key": "Alt+v", - "KeyChar": "b", - "ConsoleKey": "B", - "Modifiers": "Alt" - }, - { - "Key": "Alt+w", - "KeyChar": "w", - "ConsoleKey": "W", - "Modifiers": "Alt" - }, - { - "Key": "Alt+x", - "KeyChar": "x", - "ConsoleKey": "X", - "Modifiers": "Alt" - }, - { - "Key": "Alt+y", - "KeyChar": "y", - "ConsoleKey": "Y", - "Modifiers": "Alt" - }, - { - "Key": "Alt+z", - "KeyChar": "z", - "ConsoleKey": "Z", - "Modifiers": "Alt" - }, - { - "Key": "B", - "KeyChar": "B", - "ConsoleKey": "B", - "Modifiers": "Shift" - }, - { - "Key": "b", - "KeyChar": "b", - "ConsoleKey": "B", - "Modifiers": "0" - }, - { - "Key": "Backspace", - "KeyChar": "\b", - "ConsoleKey": "Backspace", - "Modifiers": "0" - }, - { - "Key": "c", - "KeyChar": "c", - "ConsoleKey": "C", - "Modifiers": "0" - }, - { - "Key": "C", - "KeyChar": "C", - "ConsoleKey": "C", - "Modifiers": "Shift" - }, - { - "Key": "Ctrl+@", - "KeyChar": "\u0000", - "ConsoleKey": "D2", - "Modifiers": "Shift, Control" - }, - { - "Key": "Ctrl+[", - "KeyChar": "\u001b", - "ConsoleKey": "Oem4", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+\\", - "KeyChar": "\u001c", - "ConsoleKey": "Oem5", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+]", - "KeyChar": "\u001d", - "ConsoleKey": "Oem6", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+^", - "KeyChar": "\u001e", - "ConsoleKey": "D6", - "Modifiers": "Shift, Control" - }, - { - "Key": "Ctrl+_", - "KeyChar": "\u001f", - "ConsoleKey": "OemMinus", - "Modifiers": "Shift, Control" - }, - { - "Key": "Ctrl+a", - "KeyChar": "\u0001", - "ConsoleKey": "A", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+Alt+?", - "KeyChar": "\u0000", - "ConsoleKey": "Oem2", - "Modifiers": "Alt, Shift, Control" - }, - { - "Key": "Ctrl+Alt+]", - "KeyChar": "\u0000", - "ConsoleKey": "Oem6", - "Modifiers": "Alt, Control" - }, - { - "Key": "Ctrl+Alt+y", - "KeyChar": "\u0000", - "ConsoleKey": "Y", - "Modifiers": "Alt, Control" - }, - { - "Key": "Ctrl+b", - "KeyChar": "\u0002", - "ConsoleKey": "B", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+Backspace", - "KeyChar": "", - "ConsoleKey": "Backspace", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+c", - "KeyChar": "\u0003", - "ConsoleKey": "C", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+C", - "KeyChar": "\u0003", - "ConsoleKey": "C", - "Modifiers": "Shift, Control" - }, - { - "Key": "Ctrl+d", - "KeyChar": "\u0004", - "ConsoleKey": "D", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+Delete", - "KeyChar": "\u0000", - "ConsoleKey": "Delete", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+e", - "KeyChar": "\u0005", - "ConsoleKey": "E", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+End", - "KeyChar": "\u0000", - "ConsoleKey": "End", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+Enter", - "KeyChar": "\n", - "ConsoleKey": "Enter", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+f", - "KeyChar": "\u0006", - "ConsoleKey": "F", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+g", - "KeyChar": "\u0007", - "ConsoleKey": "G", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+h", - "KeyChar": "\b", - "ConsoleKey": "H", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+Home", - "KeyChar": "\u0000", - "ConsoleKey": "Home", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+i", - "KeyChar": "\t", - "ConsoleKey": "I", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+j", - "KeyChar": "\n", - "ConsoleKey": "J", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+k", - "KeyChar": "\u000b", - "ConsoleKey": "K", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+l", - "KeyChar": "\f", - "ConsoleKey": "L", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+m", - "KeyChar": "\r", - "ConsoleKey": "M", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+n", - "KeyChar": "\u000e", - "ConsoleKey": "N", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+o", - "KeyChar": "\u000f", - "ConsoleKey": "O", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+p", - "KeyChar": "\u0010", - "ConsoleKey": "P", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+PageDown", - "KeyChar": "\u0000", - "ConsoleKey": "PageDown", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+PageUp", - "KeyChar": "\u0000", - "ConsoleKey": "PageUp", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+q", - "KeyChar": "\u0011", - "ConsoleKey": "Q", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+r", - "KeyChar": "\u0012", - "ConsoleKey": "R", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+s", - "KeyChar": "\u0013", - "ConsoleKey": "S", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+Shift+Enter", - "KeyChar": "\u0000", - "ConsoleKey": "Enter", - "Modifiers": "Shift, Control" - }, - { - "Key": "Ctrl+Shift+LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "Shift, Control" - }, - { - "Key": "Ctrl+Shift+RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "Shift, Control" - }, - { - "Key": "Ctrl+Spacebar", - "KeyChar": " ", - "ConsoleKey": "Spacebar", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+t", - "KeyChar": "\u0014", - "ConsoleKey": "T", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+u", - "KeyChar": "\u0015", - "ConsoleKey": "U", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+v", - "KeyChar": "\u0016", - "ConsoleKey": "V", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+w", - "KeyChar": "\u0017", - "ConsoleKey": "W", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+x", - "KeyChar": "\u0018", - "ConsoleKey": "X", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+y", - "KeyChar": "\u0019", - "ConsoleKey": "Y", - "Modifiers": "Control" - }, - { - "Key": "Ctrl+z", - "KeyChar": "\u001a", - "ConsoleKey": "Z", - "Modifiers": "Control" - }, - { - "Key": "D", - "KeyChar": "D", - "ConsoleKey": "D", - "Modifiers": "Shift" - }, - { - "Key": "d", - "KeyChar": "d", - "ConsoleKey": "D", - "Modifiers": "0" - }, - { - "Key": "Delete", - "KeyChar": "\u0000", - "ConsoleKey": "Delete", - "Modifiers": "0" - }, - { - "Key": "DownArrow", - "KeyChar": "\u0000", - "ConsoleKey": "DownArrow", - "Modifiers": "0" - }, - { - "Key": "E", - "KeyChar": "E", - "ConsoleKey": "E", - "Modifiers": "Shift" - }, - { - "Key": "e", - "KeyChar": "e", - "ConsoleKey": "E", - "Modifiers": "0" - }, - { - "Key": "End", - "KeyChar": "\u0000", - "ConsoleKey": "End", - "Modifiers": "0" - }, - { - "Key": "Enter", - "KeyChar": "\r", - "ConsoleKey": "Enter", - "Modifiers": "0" - }, - { - "Key": "Escape", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0" - }, - { - "Key": "f", - "KeyChar": "f", - "ConsoleKey": "F", - "Modifiers": "0" - }, - { - "Key": "F", - "KeyChar": "F", - "ConsoleKey": "F", - "Modifiers": "Shift" - }, - { - "Key": "F1", - "KeyChar": "\u0000", - "ConsoleKey": "F1", - "Modifiers": "0" - }, - { - "Key": "F2", - "KeyChar": "\u0000", - "ConsoleKey": "F2", - "Modifiers": "0" - }, - { - "Key": "F3", - "KeyChar": "\u0000", - "ConsoleKey": "F3", - "Modifiers": "0" - }, - { - "Key": "F4", - "KeyChar": "\u0000", - "ConsoleKey": "F4", - "Modifiers": "0" - }, - { - "Key": "F5", - "KeyChar": "\u0000", - "ConsoleKey": "F5", - "Modifiers": "0" - }, - { - "Key": "F6", - "KeyChar": "\u0000", - "ConsoleKey": "F6", - "Modifiers": "0" - }, - { - "Key": "F7", - "KeyChar": "\u0000", - "ConsoleKey": "F7", - "Modifiers": "0" - }, - { - "Key": "F8", - "KeyChar": "\u0000", - "ConsoleKey": "F8", - "Modifiers": "0" - }, - { - "Key": "F9", - "KeyChar": "\u0000", - "ConsoleKey": "F9", - "Modifiers": "0" - }, - { - "Key": "G", - "KeyChar": "G", - "ConsoleKey": "G", - "Modifiers": "Shift" - }, - { - "Key": "g", - "KeyChar": "g", - "ConsoleKey": "G", - "Modifiers": "0" - }, - { - "Key": "h", - "KeyChar": "h", - "ConsoleKey": "H", - "Modifiers": "0" - }, - { - "Key": "H", - "KeyChar": "H", - "ConsoleKey": "H", - "Modifiers": "Shift" - }, - { - "Key": "Home", - "KeyChar": "\u0000", - "ConsoleKey": "Home", - "Modifiers": "0" - }, - { - "Key": "i", - "KeyChar": "i", - "ConsoleKey": "I", - "Modifiers": "0" - }, - { - "Key": "I", - "KeyChar": "I", - "ConsoleKey": "I", - "Modifiers": "Shift" - }, - { - "Key": "j", - "KeyChar": "j", - "ConsoleKey": "J", - "Modifiers": "0" - }, - { - "Key": "J", - "KeyChar": "J", - "ConsoleKey": "J", - "Modifiers": "Shift" - }, - { - "Key": "k", - "KeyChar": "k", - "ConsoleKey": "K", - "Modifiers": "0" - }, - { - "Key": "K", - "KeyChar": "K", - "ConsoleKey": "K", - "Modifiers": "Shift" - }, - { - "Key": "l", - "KeyChar": "l", - "ConsoleKey": "L", - "Modifiers": "0" - }, - { - "Key": "L", - "KeyChar": "L", - "ConsoleKey": "L", - "Modifiers": "Shift" - }, - { - "Key": "LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "0" - }, - { - "Key": "M", - "KeyChar": "M", - "ConsoleKey": "M", - "Modifiers": "Shift" - }, - { - "Key": "m", - "KeyChar": "m", - "ConsoleKey": "M", - "Modifiers": "0" - }, - { - "Key": "N", - "KeyChar": "N", - "ConsoleKey": "N", - "Modifiers": "Shift" - }, - { - "Key": "n", - "KeyChar": "n", - "ConsoleKey": "N", - "Modifiers": "0" - }, - { - "Key": "o", - "KeyChar": "o", - "ConsoleKey": "O", - "Modifiers": "0" - }, - { - "Key": "O", - "KeyChar": "O", - "ConsoleKey": "O", - "Modifiers": "Shift" - }, - { - "Key": "P", - "KeyChar": "P", - "ConsoleKey": "P", - "Modifiers": "Shift" - }, - { - "Key": "p", - "KeyChar": "p", - "ConsoleKey": "P", - "Modifiers": "0" - }, - { - "Key": "PageDown", - "KeyChar": "\u0000", - "ConsoleKey": "PageDown", - "Modifiers": "0" - }, - { - "Key": "PageUp", - "KeyChar": "\u0000", - "ConsoleKey": "PageUp", - "Modifiers": "0" - }, - { - "Key": "q", - "KeyChar": "q", - "ConsoleKey": "Q", - "Modifiers": "0" - }, - { - "Key": "r", - "KeyChar": "r", - "ConsoleKey": "R", - "Modifiers": "0" - }, - { - "Key": "R", - "KeyChar": "R", - "ConsoleKey": "R", - "Modifiers": "Shift" - }, - { - "Key": "RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "0" - }, - { - "Key": "s", - "KeyChar": "s", - "ConsoleKey": "S", - "Modifiers": "0" - }, - { - "Key": "S", - "KeyChar": "S", - "ConsoleKey": "S", - "Modifiers": "Shift" - }, - { - "Key": "Shift+DownArrow", - "KeyChar": "\u0000", - "ConsoleKey": "DownArrow", - "Modifiers": "Shift" - }, - { - "Key": "Shift+End", - "KeyChar": "\u0000", - "ConsoleKey": "End", - "Modifiers": "Shift" - }, - { - "Key": "Shift+Enter", - "KeyChar": "\r", - "ConsoleKey": "Enter", - "Modifiers": "Shift" - }, - { - "Key": "Shift+F3", - "KeyChar": "\u0000", - "ConsoleKey": "F3", - "Modifiers": "Shift" - }, - { - "Key": "Shift+F8", - "KeyChar": "\u0000", - "ConsoleKey": "F8", - "Modifiers": "Shift" - }, - { - "Key": "Shift+Home", - "KeyChar": "\u0000", - "ConsoleKey": "Home", - "Modifiers": "Shift" - }, - { - "Key": "Shift+Insert", - "KeyChar": "\u0000", - "ConsoleKey": "Insert", - "Modifiers": "Shift" - }, - { - "Key": "Shift+LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "Shift" - }, - { - "Key": "Shift+PageDown", - "KeyChar": "\u0000", - "ConsoleKey": "PageDown", - "Modifiers": "Shift" - }, - { - "Key": "Shift+PageUp", - "KeyChar": "\u0000", - "ConsoleKey": "PageUp", - "Modifiers": "Shift" - }, - { - "Key": "Shift+RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "Shift" - }, - { - "Key": "Shift+Tab", - "KeyChar": "\t", - "ConsoleKey": "Tab", - "Modifiers": "Shift" - }, - { - "Key": "Shift+UpArrow", - "KeyChar": "\u0000", - "ConsoleKey": "UpArrow", - "Modifiers": "Shift" - }, - { - "Key": "Shift+Backspace", - "KeyChar": "\b", - "ConsoleKey": "Backspace", - "Modifiers": "Shift" - }, - { - "Key": "Shift+Escape", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "Shift" - }, - { - "Key": "Spacebar", - "KeyChar": " ", - "ConsoleKey": "Spacebar", - "Modifiers": "0" - }, - { - "Key": "T", - "KeyChar": "T", - "ConsoleKey": "T", - "Modifiers": "Shift" - }, - { - "Key": "t", - "KeyChar": "t", - "ConsoleKey": "T", - "Modifiers": "0" - }, - { - "Key": "Tab", - "KeyChar": "\t", - "ConsoleKey": "Tab", - "Modifiers": "0" - }, - { - "Key": "u", - "KeyChar": "u", - "ConsoleKey": "U", - "Modifiers": "0" - }, - { - "Key": "U", - "KeyChar": "U", - "ConsoleKey": "U", - "Modifiers": "Shift" - }, - { - "Key": "UpArrow", - "KeyChar": "\u0000", - "ConsoleKey": "UpArrow", - "Modifiers": "0" - }, - { - "Key": "v", - "KeyChar": "v", - "ConsoleKey": "V", - "Modifiers": "0" - }, - { - "Key": "V", - "KeyChar": "V", - "ConsoleKey": "V", - "Modifiers": "Shift" - }, - { - "Key": "w", - "KeyChar": "w", - "ConsoleKey": "W", - "Modifiers": "0" - }, - { - "Key": "W", - "KeyChar": "W", - "ConsoleKey": "W", - "Modifiers": "Shift" - }, - { - "Key": "x", - "KeyChar": "x", - "ConsoleKey": "X", - "Modifiers": "0" - }, - { - "Key": "X", - "KeyChar": "X", - "ConsoleKey": "X", - "Modifiers": "Shift" - }, - { - "Key": "y", - "KeyChar": "y", - "ConsoleKey": "Y", - "Modifiers": "0" - }, - { - "Key": "Y", - "KeyChar": "Y", - "ConsoleKey": "Y", - "Modifiers": "Shift" - }, - { - "Key": "Z", - "KeyChar": "Z", - "ConsoleKey": "Z", - "Modifiers": "Shift" - }, - { - "Key": "z", - "KeyChar": "z", - "ConsoleKey": "Z", - "Modifiers": "0" - } -] diff --git a/test/KeyInfo-fr-FR-windows.json b/test/KeyInfo-fr-FR-windows.json deleted file mode 100644 index 0aad3a2b7..000000000 --- a/test/KeyInfo-fr-FR-windows.json +++ /dev/null @@ -1,1654 +0,0 @@ -[ - { - "Key": "\u0027", - "KeyChar": "\u0027", - "ConsoleKey": "D4", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "-", - "KeyChar": "-", - "ConsoleKey": "D6", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "!", - "KeyChar": "!", - "ConsoleKey": "Oem8", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "\"", - "KeyChar": "\"", - "ConsoleKey": "D3", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "#", - "KeyChar": "#", - "ConsoleKey": "D3", - "Modifiers": "Alt, Control", - "Investigate": false - }, - { - "Key": "$", - "KeyChar": "$", - "ConsoleKey": "Oem1", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "%", - "KeyChar": "%", - "ConsoleKey": "Oem3", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "\u0026", - "KeyChar": "\u0026", - "ConsoleKey": "D1", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "(", - "KeyChar": "(", - "ConsoleKey": "D5", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": ")", - "KeyChar": ")", - "ConsoleKey": "Oem4", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "*", - "KeyChar": "*", - "ConsoleKey": "Oem5", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": ",", - "KeyChar": ",", - "ConsoleKey": "OemComma", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": ".", - "KeyChar": ".", - "ConsoleKey": "OemPeriod", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "/", - "KeyChar": "/", - "ConsoleKey": "Oem2", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": ":", - "KeyChar": ":", - "ConsoleKey": "Oem2", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": ";", - "KeyChar": ";", - "ConsoleKey": "OemPeriod", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "?", - "KeyChar": "?", - "ConsoleKey": "OemComma", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "@", - "KeyChar": "@", - "ConsoleKey": "D0", - "Modifiers": "Alt, Control", - "Investigate": false - }, - { - "Key": "[", - "KeyChar": "[", - "ConsoleKey": "D5", - "Modifiers": "Alt, Control", - "Investigate": false - }, - { - "Key": "\\", - "KeyChar": "\\", - "ConsoleKey": "D8", - "Modifiers": "Alt, Control", - "Investigate": false - }, - { - "Key": "]", - "KeyChar": "]", - "ConsoleKey": "Oem4", - "Modifiers": "Alt, Control", - "Investigate": false - }, - { - "Key": "^", - "KeyChar": "^", - "ConsoleKey": "Oem6", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "_", - "KeyChar": "_", - "ConsoleKey": "D8", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "`", - "KeyChar": "`", - "ConsoleKey": "D7", - "Modifiers": "Alt, Control", - "Investigate": true - }, - { - "Key": "{", - "KeyChar": "{", - "ConsoleKey": "D4", - "Modifiers": "Alt, Control", - "Investigate": false - }, - { - "Key": "|", - "KeyChar": "|", - "ConsoleKey": "D6", - "Modifiers": "Alt, Control", - "Investigate": false - }, - { - "Key": "}", - "KeyChar": "}", - "ConsoleKey": "OemPlus", - "Modifiers": "Alt, Control", - "Investigate": false - }, - { - "Key": "~", - "KeyChar": "~", - "ConsoleKey": "D2", - "Modifiers": "Alt, Control", - "Investigate": true - }, - { - "Key": "+", - "KeyChar": "+", - "ConsoleKey": "OemPlus", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "\u003c", - "KeyChar": "\u003c", - "ConsoleKey": "18", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "=", - "KeyChar": "=", - "ConsoleKey": "OemPlus", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "\u003e", - "KeyChar": "\u003e", - "ConsoleKey": "18", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "0", - "KeyChar": "0", - "ConsoleKey": "D0", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "1", - "KeyChar": "1", - "ConsoleKey": "D1", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "2", - "KeyChar": "2", - "ConsoleKey": "D2", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "3", - "KeyChar": "3", - "ConsoleKey": "D3", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "4", - "KeyChar": "4", - "ConsoleKey": "D4", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "5", - "KeyChar": "5", - "ConsoleKey": "D5", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "6", - "KeyChar": "6", - "ConsoleKey": "D6", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "7", - "KeyChar": "7", - "ConsoleKey": "D7", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "8", - "KeyChar": "8", - "ConsoleKey": "D8", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "9", - "KeyChar": "9", - "ConsoleKey": "D9", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "a", - "KeyChar": "a", - "ConsoleKey": "A", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "A", - "KeyChar": "A", - "ConsoleKey": "A", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+-", - "KeyChar": "-", - "ConsoleKey": "D6", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+.", - "KeyChar": ".", - "ConsoleKey": "OemPeriod", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Alt+?", - "KeyChar": "?", - "ConsoleKey": "OemComma", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Alt+_", - "KeyChar": "8", - "ConsoleKey": "D8", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Alt+=", - "KeyChar": "=", - "ConsoleKey": "OemPlus", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+0", - "KeyChar": "0", - "ConsoleKey": "D0", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Alt+1", - "KeyChar": "1", - "ConsoleKey": "D1", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Alt+2", - "KeyChar": "2", - "ConsoleKey": "D2", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Alt+3", - "KeyChar": "3", - "ConsoleKey": "D3", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Alt+4", - "KeyChar": "4", - "ConsoleKey": "D4", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Alt+5", - "KeyChar": "5", - "ConsoleKey": "D5", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Alt+6", - "KeyChar": "6", - "ConsoleKey": "D6", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Alt+7", - "KeyChar": "7", - "ConsoleKey": "D7", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Alt+8", - "KeyChar": "8", - "ConsoleKey": "D8", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Alt+9", - "KeyChar": "9", - "ConsoleKey": "D9", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Alt+a", - "KeyChar": "a", - "ConsoleKey": "A", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+b", - "KeyChar": "b", - "ConsoleKey": "B", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+B", - "KeyChar": "B", - "ConsoleKey": "B", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Alt+Backspace", - "KeyChar": "\b", - "ConsoleKey": "Backspace", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+c", - "KeyChar": "c", - "ConsoleKey": "C", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+d", - "KeyChar": "d", - "ConsoleKey": "D", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+e", - "KeyChar": "e", - "ConsoleKey": "E", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+F", - "KeyChar": "F", - "ConsoleKey": "F", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Alt+f", - "KeyChar": "f", - "ConsoleKey": "F", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+F1", - "KeyChar": "\u0000", - "ConsoleKey": "F1", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+F2", - "KeyChar": "\u0000", - "ConsoleKey": "F2", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+F3", - "KeyChar": "\u0000", - "ConsoleKey": "F3", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+F4", - "KeyChar": "\u0000", - "ConsoleKey": "F4", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+F5", - "KeyChar": "\u0000", - "ConsoleKey": "F5", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+F6", - "KeyChar": "\u0000", - "ConsoleKey": "F6", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+F7", - "KeyChar": "\u0000", - "ConsoleKey": "F7", - "Modifiers": "Alt, Control", - "Investigate": false - }, - { - "Key": "Alt+F8", - "KeyChar": "\u0000", - "ConsoleKey": "F8", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+F9", - "KeyChar": "\u0000", - "ConsoleKey": "F9", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+g", - "KeyChar": "g", - "ConsoleKey": "G", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+h", - "KeyChar": "h", - "ConsoleKey": "H", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+i", - "KeyChar": "i", - "ConsoleKey": "I", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+j", - "KeyChar": "j", - "ConsoleKey": "J", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+k", - "KeyChar": "k", - "ConsoleKey": "K", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+l", - "KeyChar": "l", - "ConsoleKey": "L", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+m", - "KeyChar": "m", - "ConsoleKey": "M", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+n", - "KeyChar": "n", - "ConsoleKey": "N", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+o", - "KeyChar": "o", - "ConsoleKey": "O", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+p", - "KeyChar": "p", - "ConsoleKey": "P", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+q", - "KeyChar": "q", - "ConsoleKey": "Q", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+r", - "KeyChar": "r", - "ConsoleKey": "R", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+s", - "KeyChar": "s", - "ConsoleKey": "S", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+Spacebar", - "KeyChar": "\r", - "ConsoleKey": "Enter", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+t", - "KeyChar": "t", - "ConsoleKey": "T", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+u", - "KeyChar": "u", - "ConsoleKey": "U", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+v", - "KeyChar": "v", - "ConsoleKey": "V", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+w", - "KeyChar": "w", - "ConsoleKey": "W", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+x", - "KeyChar": "x", - "ConsoleKey": "X", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+y", - "KeyChar": "y", - "ConsoleKey": "Y", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+z", - "KeyChar": "z", - "ConsoleKey": "Z", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "B", - "KeyChar": "B", - "ConsoleKey": "B", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "b", - "KeyChar": "b", - "ConsoleKey": "B", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Backspace", - "KeyChar": "\b", - "ConsoleKey": "Backspace", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "c", - "KeyChar": "c", - "ConsoleKey": "C", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "C", - "KeyChar": "C", - "ConsoleKey": "C", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+@", - "KeyChar": "@", - "ConsoleKey": "D0", - "Modifiers": "Alt, Control", - "Investigate": false - }, - { - "Key": "Ctrl+[", - "KeyChar": "[", - "ConsoleKey": "D5", - "Modifiers": "Alt, Control", - "Investigate": false - }, - { - "Key": "Ctrl+\\", - "KeyChar": "\\", - "ConsoleKey": "D8", - "Modifiers": "Alt, Control", - "Investigate": false - }, - { - "Key": "Ctrl+]", - "KeyChar": "]", - "ConsoleKey": "Oem4", - "Modifiers": "Alt, Control", - "Investigate": false - }, - { - "Key": "Ctrl+^", - "KeyChar": "^", - "ConsoleKey": "D9", - "Modifiers": "Alt, Control", - "Investigate": true - }, - { - "Key": "Ctrl+_", - "KeyChar": "\u0000", - "ConsoleKey": "D8", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+a", - "KeyChar": "\u0001", - "ConsoleKey": "A", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+Alt+?", - "KeyChar": "\u0000", - "ConsoleKey": "OemComma", - "Modifiers": "Alt, Shift, Control", - "Investigate": false - }, - { - "Key": "Ctrl+Alt+]", - "KeyChar": "]", - "ConsoleKey": "Oem4", - "Modifiers": "Alt, Control", - "Investigate": false - }, - { - "Key": "Ctrl+Alt+y", - "KeyChar": "\u0000", - "ConsoleKey": "Y", - "Modifiers": "Alt, Control", - "Investigate": false - }, - { - "Key": "Ctrl+b", - "KeyChar": "\u0002", - "ConsoleKey": "B", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+Backspace", - "KeyChar": "", - "ConsoleKey": "Backspace", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+C", - "KeyChar": "\u0003", - "ConsoleKey": "C", - "Modifiers": "Shift, Control", - "Investigate": false - }, - { - "Key": "Ctrl+c", - "KeyChar": "\u0003", - "ConsoleKey": "C", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+d", - "KeyChar": "\u0004", - "ConsoleKey": "D", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+Delete", - "KeyChar": "\u0000", - "ConsoleKey": "Delete", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+e", - "KeyChar": "\u0005", - "ConsoleKey": "E", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+End", - "KeyChar": "\u0000", - "ConsoleKey": "End", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+Enter", - "KeyChar": "\n", - "ConsoleKey": "Enter", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+f", - "KeyChar": "\u0006", - "ConsoleKey": "F", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+g", - "KeyChar": "\u0007", - "ConsoleKey": "G", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+h", - "KeyChar": "\b", - "ConsoleKey": "H", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+Home", - "KeyChar": "\u0000", - "ConsoleKey": "Home", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+i", - "KeyChar": "\t", - "ConsoleKey": "I", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+j", - "KeyChar": "\n", - "ConsoleKey": "J", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+k", - "KeyChar": "\u000b", - "ConsoleKey": "K", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+l", - "KeyChar": "\f", - "ConsoleKey": "L", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+m", - "KeyChar": "\r", - "ConsoleKey": "M", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+n", - "KeyChar": "\u000e", - "ConsoleKey": "N", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+o", - "KeyChar": "\u000f", - "ConsoleKey": "O", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+p", - "KeyChar": "\u0010", - "ConsoleKey": "P", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+PageDown", - "KeyChar": "\u0000", - "ConsoleKey": "PageDown", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+PageUp", - "KeyChar": "\u0000", - "ConsoleKey": "PageUp", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+q", - "KeyChar": "\u0011", - "ConsoleKey": "Q", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+r", - "KeyChar": "\u0012", - "ConsoleKey": "R", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+s", - "KeyChar": "\u0013", - "ConsoleKey": "S", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+Shift+Enter", - "KeyChar": "\u0000", - "ConsoleKey": "Enter", - "Modifiers": "Shift, Control", - "Investigate": false - }, - { - "Key": "Ctrl+Shift+LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "Shift, Control", - "Investigate": false - }, - { - "Key": "Ctrl+Shift+RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "Shift, Control", - "Investigate": false - }, - { - "Key": "Ctrl+Spacebar", - "KeyChar": " ", - "ConsoleKey": "Spacebar", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+t", - "KeyChar": "\u0014", - "ConsoleKey": "T", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+u", - "KeyChar": "\u0015", - "ConsoleKey": "U", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+v", - "KeyChar": "\u0016", - "ConsoleKey": "V", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+w", - "KeyChar": "\u0017", - "ConsoleKey": "W", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+x", - "KeyChar": "\u0018", - "ConsoleKey": "X", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+y", - "KeyChar": "\u0019", - "ConsoleKey": "Y", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+z", - "KeyChar": "\u001a", - "ConsoleKey": "Z", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "D", - "KeyChar": "D", - "ConsoleKey": "D", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "d", - "KeyChar": "d", - "ConsoleKey": "D", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Delete", - "KeyChar": "\u0000", - "ConsoleKey": "Delete", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "DownArrow", - "KeyChar": "\u0000", - "ConsoleKey": "DownArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "E", - "KeyChar": "E", - "ConsoleKey": "E", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "e", - "KeyChar": "e", - "ConsoleKey": "E", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "End", - "KeyChar": "\u0000", - "ConsoleKey": "End", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Enter", - "KeyChar": "\r", - "ConsoleKey": "Enter", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Escape", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F", - "KeyChar": "F", - "ConsoleKey": "F", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "f", - "KeyChar": "f", - "ConsoleKey": "F", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F1", - "KeyChar": "\u0000", - "ConsoleKey": "F1", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F2", - "KeyChar": "\u0000", - "ConsoleKey": "F2", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F3", - "KeyChar": "\u0000", - "ConsoleKey": "F3", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F4", - "KeyChar": "\u0000", - "ConsoleKey": "F4", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F5", - "KeyChar": "\u0000", - "ConsoleKey": "F5", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F6", - "KeyChar": "\u0000", - "ConsoleKey": "F6", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F7", - "KeyChar": "\u0000", - "ConsoleKey": "F7", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F8", - "KeyChar": "\u0000", - "ConsoleKey": "F8", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F9", - "KeyChar": "\u0000", - "ConsoleKey": "F9", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "g", - "KeyChar": "g", - "ConsoleKey": "G", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "G", - "KeyChar": "G", - "ConsoleKey": "G", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "h", - "KeyChar": "h", - "ConsoleKey": "H", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "H", - "KeyChar": "H", - "ConsoleKey": "H", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Home", - "KeyChar": "\u0000", - "ConsoleKey": "Home", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "I", - "KeyChar": "I", - "ConsoleKey": "I", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "i", - "KeyChar": "i", - "ConsoleKey": "I", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "j", - "KeyChar": "j", - "ConsoleKey": "J", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "J", - "KeyChar": "J", - "ConsoleKey": "J", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "K", - "KeyChar": "K", - "ConsoleKey": "K", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "k", - "KeyChar": "k", - "ConsoleKey": "K", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "l", - "KeyChar": "l", - "ConsoleKey": "L", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "L", - "KeyChar": "L", - "ConsoleKey": "L", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "M", - "KeyChar": "M", - "ConsoleKey": "M", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "m", - "KeyChar": "m", - "ConsoleKey": "M", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "N", - "KeyChar": "N", - "ConsoleKey": "N", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "n", - "KeyChar": "n", - "ConsoleKey": "N", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "O", - "KeyChar": "O", - "ConsoleKey": "O", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "o", - "KeyChar": "o", - "ConsoleKey": "O", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "p", - "KeyChar": "p", - "ConsoleKey": "P", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "P", - "KeyChar": "P", - "ConsoleKey": "P", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "PageDown", - "KeyChar": "\u0000", - "ConsoleKey": "PageDown", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "PageUp", - "KeyChar": "\u0000", - "ConsoleKey": "PageUp", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "q", - "KeyChar": "q", - "ConsoleKey": "Q", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "r", - "KeyChar": "r", - "ConsoleKey": "R", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "R", - "KeyChar": "R", - "ConsoleKey": "R", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "s", - "KeyChar": "s", - "ConsoleKey": "S", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "S", - "KeyChar": "S", - "ConsoleKey": "S", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+DownArrow", - "KeyChar": "\u0000", - "ConsoleKey": "DownArrow", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+End", - "KeyChar": "\u0000", - "ConsoleKey": "End", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+Enter", - "KeyChar": "\r", - "ConsoleKey": "Enter", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+F3", - "KeyChar": "\u0000", - "ConsoleKey": "F3", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+F8", - "KeyChar": "\u0000", - "ConsoleKey": "F8", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+Home", - "KeyChar": "\u0000", - "ConsoleKey": "Home", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+Insert", - "KeyChar": "\u0000", - "ConsoleKey": "Insert", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+PageDown", - "KeyChar": "\u0000", - "ConsoleKey": "PageDown", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+PageUp", - "KeyChar": "\u0000", - "ConsoleKey": "PageUp", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+Tab", - "KeyChar": "\t", - "ConsoleKey": "Tab", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+Backspace", - "KeyChar": "\b", - "ConsoleKey": "Backspace", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+Escape", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+UpArrow", - "KeyChar": "\u0000", - "ConsoleKey": "UpArrow", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Spacebar", - "KeyChar": " ", - "ConsoleKey": "Spacebar", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "t", - "KeyChar": "t", - "ConsoleKey": "T", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "T", - "KeyChar": "T", - "ConsoleKey": "T", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Tab", - "KeyChar": "\t", - "ConsoleKey": "Tab", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "U", - "KeyChar": "U", - "ConsoleKey": "U", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "u", - "KeyChar": "u", - "ConsoleKey": "U", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "UpArrow", - "KeyChar": "\u0000", - "ConsoleKey": "UpArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "V", - "KeyChar": "V", - "ConsoleKey": "V", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "v", - "KeyChar": "v", - "ConsoleKey": "V", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "W", - "KeyChar": "W", - "ConsoleKey": "W", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "w", - "KeyChar": "w", - "ConsoleKey": "W", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "X", - "KeyChar": "X", - "ConsoleKey": "X", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "x", - "KeyChar": "x", - "ConsoleKey": "X", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "y", - "KeyChar": "y", - "ConsoleKey": "Y", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Y", - "KeyChar": "Y", - "ConsoleKey": "Y", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Z", - "KeyChar": "Z", - "ConsoleKey": "Z", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "z", - "KeyChar": "z", - "ConsoleKey": "Z", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "DeadKey_Caret", - "KeyChar": "\u0000", - "ConsoleKey": "Oem6", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "DeadKey_Caret+A", - "KeyChar": "\u00e2", - "ConsoleKey": "A", - "Modifiers": "0", - "Investigate": false - } -] diff --git a/test/KeyInfo-pl-PL-linux.json b/test/KeyInfo-pl-PL-linux.json deleted file mode 100644 index 1fdaea891..000000000 --- a/test/KeyInfo-pl-PL-linux.json +++ /dev/null @@ -1,1647 +0,0 @@ -[ - { - "Key": "Alt+_", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "PageUp", - "KeyChar": "\u0000", - "ConsoleKey": "PageUp", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+F1", - "KeyChar": "P", - "ConsoleKey": "P", - "Modifiers": "Shift", - "Investigate": true - }, - { - "Key": "Ctrl+^", - "KeyChar": "\u001e", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "V", - "KeyChar": "V", - "ConsoleKey": "V", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "-", - "KeyChar": "-", - "ConsoleKey": "Subtract", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+6", - "KeyChar": "6", - "ConsoleKey": "D6", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Delete", - "KeyChar": "\u0000", - "ConsoleKey": "Delete", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "C", - "KeyChar": "C", - "ConsoleKey": "C", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+y", - "KeyChar": "y", - "ConsoleKey": "Y", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "{", - "KeyChar": "{", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Home", - "KeyChar": "\u0000", - "ConsoleKey": "Home", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+k", - "KeyChar": "\u000b", - "ConsoleKey": "K", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+k", - "KeyChar": "k", - "ConsoleKey": "K", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+n", - "KeyChar": "n", - "ConsoleKey": "N", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "x", - "KeyChar": "x", - "ConsoleKey": "X", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+[", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+t", - "KeyChar": "\u0014", - "ConsoleKey": "T", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": ":", - "KeyChar": ":", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "^", - "KeyChar": "^", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Home", - "KeyChar": "\u0000", - "ConsoleKey": "Home", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "=", - "KeyChar": "=", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+?", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+s", - "KeyChar": "s", - "ConsoleKey": "S", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+v", - "KeyChar": "v", - "ConsoleKey": "V", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "&", - "KeyChar": "&", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "m", - "KeyChar": "m", - "ConsoleKey": "M", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+h", - "KeyChar": "h", - "ConsoleKey": "H", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "z", - "KeyChar": "z", - "ConsoleKey": "Z", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "f", - "KeyChar": "f", - "ConsoleKey": "F", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "u", - "KeyChar": "u", - "ConsoleKey": "U", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "R", - "KeyChar": "R", - "ConsoleKey": "R", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+F8", - "KeyChar": "~", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": true - }, - { - "Key": "Ctrl+c", - "KeyChar": "\u0003", - "ConsoleKey": "C", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+F4", - "KeyChar": "S", - "ConsoleKey": "S", - "Modifiers": "Shift", - "Investigate": true - }, - { - "Key": "s", - "KeyChar": "s", - "ConsoleKey": "S", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+<", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": ">", - "KeyChar": ">", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+Tab", - "KeyChar": "\u0000", - "ConsoleKey": "Tab", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+Backspace", - "KeyChar": "\u007f", - "ConsoleKey": "Backspace", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+Escape", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "j", - "KeyChar": "j", - "ConsoleKey": "J", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+0", - "KeyChar": "0", - "ConsoleKey": "D0", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+z", - "KeyChar": "\u001a", - "ConsoleKey": "Z", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "<", - "KeyChar": "<", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+=", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "3", - "KeyChar": "3", - "ConsoleKey": "D3", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+Spacebar", - "KeyChar": " ", - "ConsoleKey": "Spacebar", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+8", - "KeyChar": "8", - "ConsoleKey": "D8", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+i", - "KeyChar": "i", - "ConsoleKey": "I", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+d", - "KeyChar": "\u0004", - "ConsoleKey": "D", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Shift+Enter", - "KeyChar": "\r", - "ConsoleKey": "Enter", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "+", - "KeyChar": "+", - "ConsoleKey": "Add", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+v", - "KeyChar": "\u0016", - "ConsoleKey": "V", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+x", - "KeyChar": "\u0018", - "ConsoleKey": "X", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Backspace", - "KeyChar": "", - "ConsoleKey": "Backspace", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "o", - "KeyChar": "o", - "ConsoleKey": "O", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+s", - "KeyChar": "\u0013", - "ConsoleKey": "S", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "F6", - "KeyChar": "\u0000", - "ConsoleKey": "F6", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Alt+y", - "KeyChar": "\u0019", - "ConsoleKey": "Y", - "Modifiers": "Alt, Control", - "Investigate": false - }, - { - "Key": "Alt+F9", - "KeyChar": "~", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": true - }, - { - "Key": "Ctrl+Spacebar", - "KeyChar": "\u0000", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "v", - "KeyChar": "v", - "ConsoleKey": "V", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "B", - "KeyChar": "B", - "ConsoleKey": "B", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "k", - "KeyChar": "k", - "ConsoleKey": "K", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+PageDown", - "KeyChar": "\u0000", - "ConsoleKey": "PageDown", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "w", - "KeyChar": "w", - "ConsoleKey": "W", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Z", - "KeyChar": "Z", - "ConsoleKey": "Z", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "F8", - "KeyChar": "\u0000", - "ConsoleKey": "F8", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "\\", - "KeyChar": "\\", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+.", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "#", - "KeyChar": "#", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+u", - "KeyChar": "u", - "ConsoleKey": "U", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Shift+DownArrow", - "KeyChar": "\u0000", - "ConsoleKey": "PageDown", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "F2", - "KeyChar": "\u0000", - "ConsoleKey": "F2", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "t", - "KeyChar": "t", - "ConsoleKey": "T", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "S", - "KeyChar": "S", - "ConsoleKey": "S", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "2", - "KeyChar": "2", - "ConsoleKey": "D2", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+a", - "KeyChar": "\u0001", - "ConsoleKey": "A", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "n", - "KeyChar": "n", - "ConsoleKey": "N", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "e", - "KeyChar": "e", - "ConsoleKey": "E", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F9", - "KeyChar": "\u0000", - "ConsoleKey": "F9", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "`", - "KeyChar": "`", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Enter", - "KeyChar": "\r", - "ConsoleKey": "Enter", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+e", - "KeyChar": "\u0005", - "ConsoleKey": "E", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+i", - "KeyChar": "\t", - "ConsoleKey": "Tab", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+g", - "KeyChar": "g", - "ConsoleKey": "G", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "~", - "KeyChar": "~", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Escape", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+UpArrow", - "KeyChar": "\u0000", - "ConsoleKey": "PageUp", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "G", - "KeyChar": "G", - "ConsoleKey": "G", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "|", - "KeyChar": "|", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+t", - "KeyChar": "t", - "ConsoleKey": "T", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+b", - "KeyChar": "\u0002", - "ConsoleKey": "B", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+Alt+?", - "KeyChar": "\u001f", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+Backspace", - "KeyChar": "", - "ConsoleKey": "Backspace", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+w", - "KeyChar": "\u0017", - "ConsoleKey": "W", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+u", - "KeyChar": "\u0015", - "ConsoleKey": "U", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+F7", - "KeyChar": "~", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": true - }, - { - "Key": "a", - "KeyChar": "a", - "ConsoleKey": "A", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "L", - "KeyChar": "L", - "ConsoleKey": "L", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+q", - "KeyChar": "q", - "ConsoleKey": "Q", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+f", - "KeyChar": "\u0006", - "ConsoleKey": "F", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "@", - "KeyChar": "@", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Shift+Enter", - "KeyChar": " ", - "ConsoleKey": "Spacebar", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "I", - "KeyChar": "I", - "ConsoleKey": "I", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+Insert", - "KeyChar": "~", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": true - }, - { - "Key": "Alt+x", - "KeyChar": "x", - "ConsoleKey": "X", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "}", - "KeyChar": "}", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "*", - "KeyChar": "*", - "ConsoleKey": "Multiply", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+F", - "KeyChar": "F", - "ConsoleKey": "F", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Alt+j", - "KeyChar": "j", - "ConsoleKey": "J", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "!", - "KeyChar": "!", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+o", - "KeyChar": "o", - "ConsoleKey": "O", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+End", - "KeyChar": "\u0000", - "ConsoleKey": "End", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "q", - "KeyChar": "q", - "ConsoleKey": "Q", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "E", - "KeyChar": "E", - "ConsoleKey": "E", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "End", - "KeyChar": "\u0000", - "ConsoleKey": "End", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+_", - "KeyChar": "\u001f", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F4", - "KeyChar": "\u0000", - "ConsoleKey": "F4", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Delete", - "KeyChar": "\u0000", - "ConsoleKey": "Delete", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Shift+PageDown", - "KeyChar": "~", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": true - }, - { - "Key": "F5", - "KeyChar": "\u0000", - "ConsoleKey": "F5", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "7", - "KeyChar": "7", - "ConsoleKey": "D7", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+r", - "KeyChar": "\u0012", - "ConsoleKey": "R", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "UpArrow", - "KeyChar": "\u0000", - "ConsoleKey": "UpArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+y", - "KeyChar": "\u0019", - "ConsoleKey": "Y", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+2", - "KeyChar": "2", - "ConsoleKey": "D2", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+f", - "KeyChar": "f", - "ConsoleKey": "F", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+F6", - "KeyChar": "~", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": true - }, - { - "Key": "Ctrl+g", - "KeyChar": "\u0007", - "ConsoleKey": "G", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "d", - "KeyChar": "d", - "ConsoleKey": "D", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+n", - "KeyChar": "\u000e", - "ConsoleKey": "N", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "%", - "KeyChar": "%", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Spacebar", - "KeyChar": " ", - "ConsoleKey": "Spacebar", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "]", - "KeyChar": "]", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+h", - "KeyChar": "\b", - "ConsoleKey": "Backspace", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+End", - "KeyChar": "F", - "ConsoleKey": "F", - "Modifiers": "Shift", - "Investigate": true - }, - { - "Key": "b", - "KeyChar": "b", - "ConsoleKey": "B", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "/", - "KeyChar": "/", - "ConsoleKey": "Divide", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+B", - "KeyChar": "B", - "ConsoleKey": "B", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Ctrl+o", - "KeyChar": "\u000f", - "ConsoleKey": "O", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": ")", - "KeyChar": ")", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F3", - "KeyChar": "\u0000", - "ConsoleKey": "F3", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+a", - "KeyChar": "a", - "ConsoleKey": "A", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+w", - "KeyChar": "w", - "ConsoleKey": "W", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+m", - "KeyChar": "\r", - "ConsoleKey": "Enter", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+l", - "KeyChar": "l", - "ConsoleKey": "L", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+4", - "KeyChar": "4", - "ConsoleKey": "D4", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+\\", - "KeyChar": "\u001c", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+PageUp", - "KeyChar": "~", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": true - }, - { - "Key": "Enter", - "KeyChar": "\r", - "ConsoleKey": "Enter", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "\"", - "KeyChar": "\"", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Shift+RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "Shift, Control", - "Investigate": false - }, - { - "Key": "1", - "KeyChar": "1", - "ConsoleKey": "D1", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "DownArrow", - "KeyChar": "\u0000", - "ConsoleKey": "DownArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "K", - "KeyChar": "K", - "ConsoleKey": "K", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Y", - "KeyChar": "Y", - "ConsoleKey": "Y", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "PageDown", - "KeyChar": "\u0000", - "ConsoleKey": "PageDown", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": ",", - "KeyChar": ",", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": ";", - "KeyChar": ";", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "y", - "KeyChar": "y", - "ConsoleKey": "Y", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "g", - "KeyChar": "g", - "ConsoleKey": "G", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+9", - "KeyChar": "9", - "ConsoleKey": "D9", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "p", - "KeyChar": "p", - "ConsoleKey": "P", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "O", - "KeyChar": "O", - "ConsoleKey": "O", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+@", - "KeyChar": "\u0000", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+d", - "KeyChar": "d", - "ConsoleKey": "D", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+PageUp", - "KeyChar": "\u0000", - "ConsoleKey": "PageUp", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+e", - "KeyChar": "e", - "ConsoleKey": "E", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Tab", - "KeyChar": "\t", - "ConsoleKey": "Tab", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+p", - "KeyChar": "p", - "ConsoleKey": "P", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "?", - "KeyChar": "?", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "$", - "KeyChar": "$", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+q", - "KeyChar": "\u0011", - "ConsoleKey": "Q", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "_", - "KeyChar": "_", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+l", - "KeyChar": "\f", - "ConsoleKey": "L", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+b", - "KeyChar": "b", - "ConsoleKey": "B", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "r", - "KeyChar": "r", - "ConsoleKey": "R", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+j", - "KeyChar": "\r", - "ConsoleKey": "Enter", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "A", - "KeyChar": "A", - "ConsoleKey": "A", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "'", - "KeyChar": "'", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+C", - "KeyChar": "\u0003", - "ConsoleKey": "C", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+m", - "KeyChar": "m", - "ConsoleKey": "M", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "h", - "KeyChar": "h", - "ConsoleKey": "H", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "c", - "KeyChar": "c", - "ConsoleKey": "C", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+F5", - "KeyChar": "~", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": true - }, - { - "Key": "W", - "KeyChar": "W", - "ConsoleKey": "W", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "N", - "KeyChar": "N", - "ConsoleKey": "N", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "X", - "KeyChar": "X", - "ConsoleKey": "X", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "U", - "KeyChar": "U", - "ConsoleKey": "U", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": ".", - "KeyChar": ".", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+1", - "KeyChar": "1", - "ConsoleKey": "D1", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "F7", - "KeyChar": "\u0000", - "ConsoleKey": "F7", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F1", - "KeyChar": "\u0000", - "ConsoleKey": "F1", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "0", - "KeyChar": "0", - "ConsoleKey": "D0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+z", - "KeyChar": "z", - "ConsoleKey": "Z", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+r", - "KeyChar": "r", - "ConsoleKey": "R", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "D", - "KeyChar": "D", - "ConsoleKey": "D", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "[", - "KeyChar": "[", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+7", - "KeyChar": "7", - "ConsoleKey": "D7", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Shift+Home", - "KeyChar": "\u0000", - "ConsoleKey": "Home", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+F3", - "KeyChar": "R", - "ConsoleKey": "R", - "Modifiers": "Shift", - "Investigate": true - }, - { - "Key": "Shift+F8", - "KeyChar": "\u0000", - "ConsoleKey": "F20", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+Backspace", - "KeyChar": "\b", - "ConsoleKey": "Backspace", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Shift+LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "Shift, Control", - "Investigate": false - }, - { - "Key": "Alt+-", - "KeyChar": "-", - "ConsoleKey": "Subtract", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "T", - "KeyChar": "T", - "ConsoleKey": "T", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "6", - "KeyChar": "6", - "ConsoleKey": "D6", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "l", - "KeyChar": "l", - "ConsoleKey": "L", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "4", - "KeyChar": "4", - "ConsoleKey": "D4", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "(", - "KeyChar": "(", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Alt+]", - "KeyChar": " ", - "ConsoleKey": "Spacebar", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "H", - "KeyChar": "H", - "ConsoleKey": "H", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+5", - "KeyChar": "5", - "ConsoleKey": "D5", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Shift+F3", - "KeyChar": "\u0000", - "ConsoleKey": "F15", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+]", - "KeyChar": "\u001d", - "ConsoleKey": "0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "5", - "KeyChar": "5", - "ConsoleKey": "D5", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "9", - "KeyChar": "9", - "ConsoleKey": "D9", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "P", - "KeyChar": "P", - "ConsoleKey": "P", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+>", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "M", - "KeyChar": "M", - "ConsoleKey": "M", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "J", - "KeyChar": "J", - "ConsoleKey": "J", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+3", - "KeyChar": "3", - "ConsoleKey": "D3", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+p", - "KeyChar": "\u0010", - "ConsoleKey": "P", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "i", - "KeyChar": "i", - "ConsoleKey": "I", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "8", - "KeyChar": "8", - "ConsoleKey": "D8", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F", - "KeyChar": "F", - "ConsoleKey": "F", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+c", - "KeyChar": "c", - "ConsoleKey": "C", - "Modifiers": "Alt", - "Investigate": false - } -] diff --git a/test/KeyInfo-pl-PL-windows.json b/test/KeyInfo-pl-PL-windows.json deleted file mode 100644 index 3bbf757fb..000000000 --- a/test/KeyInfo-pl-PL-windows.json +++ /dev/null @@ -1,1654 +0,0 @@ -[ - { - "Key": "Alt+t", - "KeyChar": "t", - "ConsoleKey": "T", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "b", - "KeyChar": "b", - "ConsoleKey": "B", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+o", - "KeyChar": "\u000f", - "ConsoleKey": "O", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "L", - "KeyChar": "L", - "ConsoleKey": "L", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+l", - "KeyChar": "\f", - "ConsoleKey": "L", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+.", - "KeyChar": ".", - "ConsoleKey": "OemPeriod", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+m", - "KeyChar": "\r", - "ConsoleKey": "M", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "z", - "KeyChar": "z", - "ConsoleKey": "Z", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F4", - "KeyChar": "\u0000", - "ConsoleKey": "F4", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "p", - "KeyChar": "p", - "ConsoleKey": "P", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F1", - "KeyChar": "\u0000", - "ConsoleKey": "F1", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+8", - "KeyChar": "8", - "ConsoleKey": "D8", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "F6", - "KeyChar": "\u0000", - "ConsoleKey": "F6", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+-", - "KeyChar": "-", - "ConsoleKey": "OemMinus", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+F5", - "KeyChar": "\u0000", - "ConsoleKey": "F5", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "9", - "KeyChar": "9", - "ConsoleKey": "D9", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "n", - "KeyChar": "n", - "ConsoleKey": "N", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "*", - "KeyChar": "*", - "ConsoleKey": "D8", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+Spacebar", - "KeyChar": " ", - "ConsoleKey": "Spacebar", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "+", - "KeyChar": "+", - "ConsoleKey": "OemPlus", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+UpArrow", - "KeyChar": "\u0000", - "ConsoleKey": "UpArrow", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "W", - "KeyChar": "W", - "ConsoleKey": "W", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+u", - "KeyChar": "u", - "ConsoleKey": "U", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+v", - "KeyChar": "v", - "ConsoleKey": "V", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+n", - "KeyChar": "n", - "ConsoleKey": "N", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+f", - "KeyChar": "\u0006", - "ConsoleKey": "F", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+End", - "KeyChar": "\u0000", - "ConsoleKey": "End", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+C", - "KeyChar": "\u0003", - "ConsoleKey": "C", - "Modifiers": "Shift, Control", - "Investigate": false - }, - { - "Key": "u", - "KeyChar": "u", - "ConsoleKey": "U", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+7", - "KeyChar": "7", - "ConsoleKey": "D7", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+\u003e", - "KeyChar": "\u003e", - "ConsoleKey": "OemPeriod", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Alt+f", - "KeyChar": "f", - "ConsoleKey": "F", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+q", - "KeyChar": "\u0011", - "ConsoleKey": "Q", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": ":", - "KeyChar": ":", - "ConsoleKey": "Oem1", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": ",", - "KeyChar": ",", - "ConsoleKey": "OemComma", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+g", - "KeyChar": "g", - "ConsoleKey": "G", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "J", - "KeyChar": "J", - "ConsoleKey": "J", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "N", - "KeyChar": "N", - "ConsoleKey": "N", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "d", - "KeyChar": "d", - "ConsoleKey": "D", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+q", - "KeyChar": "q", - "ConsoleKey": "Q", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "/", - "KeyChar": "/", - "ConsoleKey": "Oem2", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+y", - "KeyChar": "y", - "ConsoleKey": "Y", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Backspace", - "KeyChar": "\b", - "ConsoleKey": "Backspace", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Alt+y", - "KeyChar": "\u0000", - "ConsoleKey": "Y", - "Modifiers": "Alt, Control", - "Investigate": false - }, - { - "Key": "Alt+b", - "KeyChar": "b", - "ConsoleKey": "B", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "!", - "KeyChar": "!", - "ConsoleKey": "D1", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+z", - "KeyChar": "\u001a", - "ConsoleKey": "Z", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+Alt+]", - "KeyChar": "\u0000", - "ConsoleKey": "Oem6", - "Modifiers": "Alt, Control", - "Investigate": false - }, - { - "Key": "A", - "KeyChar": "A", - "ConsoleKey": "A", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+e", - "KeyChar": "e", - "ConsoleKey": "E", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "`", - "KeyChar": "`", - "ConsoleKey": "Oem3", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+F", - "KeyChar": "F", - "ConsoleKey": "F", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Alt+\u003c", - "KeyChar": "\u003c", - "ConsoleKey": "OemComma", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Ctrl+r", - "KeyChar": "\u0012", - "ConsoleKey": "R", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "G", - "KeyChar": "G", - "ConsoleKey": "G", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+s", - "KeyChar": "s", - "ConsoleKey": "S", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Shift+Enter", - "KeyChar": "\r", - "ConsoleKey": "Enter", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "l", - "KeyChar": "l", - "ConsoleKey": "L", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+1", - "KeyChar": "1", - "ConsoleKey": "D1", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+r", - "KeyChar": "r", - "ConsoleKey": "R", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+Enter", - "KeyChar": "\n", - "ConsoleKey": "Enter", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "f", - "KeyChar": "f", - "ConsoleKey": "F", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "8", - "KeyChar": "8", - "ConsoleKey": "D8", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "U", - "KeyChar": "U", - "ConsoleKey": "U", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+b", - "KeyChar": "\u0002", - "ConsoleKey": "B", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "R", - "KeyChar": "R", - "ConsoleKey": "R", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "r", - "KeyChar": "r", - "ConsoleKey": "R", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+Backspace", - "KeyChar": "\b", - "ConsoleKey": "Backspace", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+F8", - "KeyChar": "\u0000", - "ConsoleKey": "F8", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "T", - "KeyChar": "T", - "ConsoleKey": "T", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+i", - "KeyChar": "\t", - "ConsoleKey": "I", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "5", - "KeyChar": "5", - "ConsoleKey": "D5", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "1", - "KeyChar": "1", - "ConsoleKey": "D1", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "\u0027", - "KeyChar": "\u0027", - "ConsoleKey": "Oem7", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+x", - "KeyChar": "\u0018", - "ConsoleKey": "X", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+Shift+RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "Shift, Control", - "Investigate": false - }, - { - "Key": "Alt+p", - "KeyChar": "p", - "ConsoleKey": "P", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+B", - "KeyChar": "B", - "ConsoleKey": "B", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "\\", - "KeyChar": "\\", - "ConsoleKey": "Oem5", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+o", - "KeyChar": "o", - "ConsoleKey": "O", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "y", - "KeyChar": "y", - "ConsoleKey": "Y", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+5", - "KeyChar": "5", - "ConsoleKey": "D5", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+F6", - "KeyChar": "\u0000", - "ConsoleKey": "F6", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "h", - "KeyChar": "h", - "ConsoleKey": "H", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+i", - "KeyChar": "i", - "ConsoleKey": "I", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "$", - "KeyChar": "$", - "ConsoleKey": "D4", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Spacebar", - "KeyChar": " ", - "ConsoleKey": "Spacebar", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "D", - "KeyChar": "D", - "ConsoleKey": "D", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+a", - "KeyChar": "a", - "ConsoleKey": "A", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Home", - "KeyChar": "\u0000", - "ConsoleKey": "Home", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Z", - "KeyChar": "Z", - "ConsoleKey": "Z", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+6", - "KeyChar": "6", - "ConsoleKey": "D6", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+Spacebar", - "KeyChar": " ", - "ConsoleKey": "Spacebar", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+h", - "KeyChar": "\b", - "ConsoleKey": "H", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "c", - "KeyChar": "c", - "ConsoleKey": "C", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+c", - "KeyChar": "\u0003", - "ConsoleKey": "C", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": ")", - "KeyChar": ")", - "ConsoleKey": "D0", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "\u0026", - "KeyChar": "\u0026", - "ConsoleKey": "D7", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "x", - "KeyChar": "x", - "ConsoleKey": "X", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+k", - "KeyChar": "\u000b", - "ConsoleKey": "K", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "?", - "KeyChar": "?", - "ConsoleKey": "Oem2", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+Tab", - "KeyChar": "\t", - "ConsoleKey": "Tab", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+Backspace", - "KeyChar": "\b", - "ConsoleKey": "Backspace", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+Escape", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+y", - "KeyChar": "\u0019", - "ConsoleKey": "Y", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Enter", - "KeyChar": "\r", - "ConsoleKey": "Enter", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "E", - "KeyChar": "E", - "ConsoleKey": "E", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+d", - "KeyChar": "\u0004", - "ConsoleKey": "D", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Shift+End", - "KeyChar": "\u0000", - "ConsoleKey": "End", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+v", - "KeyChar": "\u0016", - "ConsoleKey": "V", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "#", - "KeyChar": "#", - "ConsoleKey": "D3", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "@", - "KeyChar": "@", - "ConsoleKey": "D2", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "F8", - "KeyChar": "\u0000", - "ConsoleKey": "F8", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+PageUp", - "KeyChar": "\u0000", - "ConsoleKey": "PageUp", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Y", - "KeyChar": "Y", - "ConsoleKey": "Y", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Delete", - "KeyChar": "\u0000", - "ConsoleKey": "Delete", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F3", - "KeyChar": "\u0000", - "ConsoleKey": "F3", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "(", - "KeyChar": "(", - "ConsoleKey": "D9", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "V", - "KeyChar": "V", - "ConsoleKey": "V", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": ";", - "KeyChar": ";", - "ConsoleKey": "Oem1", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "PageDown", - "KeyChar": "\u0000", - "ConsoleKey": "PageDown", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+e", - "KeyChar": "\u0005", - "ConsoleKey": "E", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "UpArrow", - "KeyChar": "\u0000", - "ConsoleKey": "UpArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "C", - "KeyChar": "C", - "ConsoleKey": "C", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "DownArrow", - "KeyChar": "\u0000", - "ConsoleKey": "DownArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "s", - "KeyChar": "s", - "ConsoleKey": "S", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+]", - "KeyChar": "\u001d", - "ConsoleKey": "Oem6", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "K", - "KeyChar": "K", - "ConsoleKey": "K", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "g", - "KeyChar": "g", - "ConsoleKey": "G", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "]", - "KeyChar": "]", - "ConsoleKey": "Oem6", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "%", - "KeyChar": "%", - "ConsoleKey": "D5", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "^", - "KeyChar": "^", - "ConsoleKey": "D6", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+_", - "KeyChar": "\u001f", - "ConsoleKey": "OemMinus", - "Modifiers": "Shift, Control", - "Investigate": false - }, - { - "Key": "Alt+3", - "KeyChar": "3", - "ConsoleKey": "D3", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "O", - "KeyChar": "O", - "ConsoleKey": "O", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "0", - "KeyChar": "0", - "ConsoleKey": "D0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+x", - "KeyChar": "x", - "ConsoleKey": "X", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+Shift+LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "Shift, Control", - "Investigate": false - }, - { - "Key": "Ctrl+p", - "KeyChar": "\u0010", - "ConsoleKey": "P", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Shift+Insert", - "KeyChar": "\u0000", - "ConsoleKey": "Insert", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+n", - "KeyChar": "\u000e", - "ConsoleKey": "N", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "P", - "KeyChar": "P", - "ConsoleKey": "P", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+0", - "KeyChar": "0", - "ConsoleKey": "D0", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "i", - "KeyChar": "i", - "ConsoleKey": "I", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+F8", - "KeyChar": "\u0000", - "ConsoleKey": "F8", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "j", - "KeyChar": "j", - "ConsoleKey": "J", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Backspace", - "KeyChar": "", - "ConsoleKey": "Backspace", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Shift+PageDown", - "KeyChar": "\u0000", - "ConsoleKey": "PageDown", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+?", - "KeyChar": "?", - "ConsoleKey": "Oem2", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "Escape", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Home", - "KeyChar": "\u0000", - "ConsoleKey": "Home", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+4", - "KeyChar": "4", - "ConsoleKey": "D4", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "=", - "KeyChar": "=", - "ConsoleKey": "OemPlus", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F7", - "KeyChar": "\u0000", - "ConsoleKey": "F7", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+@", - "KeyChar": "\u0000", - "ConsoleKey": "D2", - "Modifiers": "Shift, Control", - "Investigate": false - }, - { - "Key": "Alt+j", - "KeyChar": "j", - "ConsoleKey": "J", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+F1", - "KeyChar": "\u0000", - "ConsoleKey": "F1", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "t", - "KeyChar": "t", - "ConsoleKey": "T", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+=", - "KeyChar": "=", - "ConsoleKey": "OemPlus", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "End", - "KeyChar": "\u0000", - "ConsoleKey": "End", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+2", - "KeyChar": "2", - "ConsoleKey": "D2", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+g", - "KeyChar": "\u0007", - "ConsoleKey": "G", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+Delete", - "KeyChar": "\u0000", - "ConsoleKey": "Delete", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "\u003c", - "KeyChar": "\u003c", - "ConsoleKey": "OemComma", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "m", - "KeyChar": "m", - "ConsoleKey": "M", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "w", - "KeyChar": "w", - "ConsoleKey": "W", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "v", - "KeyChar": "v", - "ConsoleKey": "V", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "_", - "KeyChar": "_", - "ConsoleKey": "OemMinus", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "-", - "KeyChar": "-", - "ConsoleKey": "OemMinus", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F9", - "KeyChar": "\u0000", - "ConsoleKey": "F9", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+a", - "KeyChar": "\u0001", - "ConsoleKey": "A", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "a", - "KeyChar": "a", - "ConsoleKey": "A", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "o", - "KeyChar": "o", - "ConsoleKey": "O", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+w", - "KeyChar": "w", - "ConsoleKey": "W", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": ".", - "KeyChar": ".", - "ConsoleKey": "OemPeriod", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+F2", - "KeyChar": "\u0000", - "ConsoleKey": "F2", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+l", - "KeyChar": "l", - "ConsoleKey": "L", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "F5", - "KeyChar": "\u0000", - "ConsoleKey": "F5", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+F7", - "KeyChar": "\u0000", - "ConsoleKey": "F7", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+9", - "KeyChar": "9", - "ConsoleKey": "D9", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+k", - "KeyChar": "k", - "ConsoleKey": "K", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "3", - "KeyChar": "3", - "ConsoleKey": "D3", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "e", - "KeyChar": "e", - "ConsoleKey": "E", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+s", - "KeyChar": "\u0013", - "ConsoleKey": "S", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+PageDown", - "KeyChar": "\u0000", - "ConsoleKey": "PageDown", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "2", - "KeyChar": "2", - "ConsoleKey": "D2", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+w", - "KeyChar": "\u0017", - "ConsoleKey": "W", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "}", - "KeyChar": "}", - "ConsoleKey": "Oem6", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "6", - "KeyChar": "6", - "ConsoleKey": "D6", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+Home", - "KeyChar": "\u0000", - "ConsoleKey": "Home", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+h", - "KeyChar": "h", - "ConsoleKey": "H", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "F2", - "KeyChar": "\u0000", - "ConsoleKey": "F2", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+c", - "KeyChar": "c", - "ConsoleKey": "C", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+Alt+?", - "KeyChar": "\u0000", - "ConsoleKey": "Oem2", - "Modifiers": "Alt, Shift, Control", - "Investigate": false - }, - { - "Key": "Ctrl+PageUp", - "KeyChar": "\u0000", - "ConsoleKey": "PageUp", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+z", - "KeyChar": "z", - "ConsoleKey": "Z", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "~", - "KeyChar": "~", - "ConsoleKey": "Oem3", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "M", - "KeyChar": "M", - "ConsoleKey": "M", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "q", - "KeyChar": "q", - "ConsoleKey": "Q", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "k", - "KeyChar": "k", - "ConsoleKey": "K", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+F4", - "KeyChar": "\u0000", - "ConsoleKey": "F4", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "4", - "KeyChar": "4", - "ConsoleKey": "D4", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+m", - "KeyChar": "m", - "ConsoleKey": "M", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+F3", - "KeyChar": "\u0000", - "ConsoleKey": "F3", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "H", - "KeyChar": "H", - "ConsoleKey": "H", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+d", - "KeyChar": "d", - "ConsoleKey": "D", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "|", - "KeyChar": "|", - "ConsoleKey": "Oem5", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+F9", - "KeyChar": "\u0000", - "ConsoleKey": "F9", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "\u003e", - "KeyChar": "\u003e", - "ConsoleKey": "OemPeriod", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+F3", - "KeyChar": "\u0000", - "ConsoleKey": "F3", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+[", - "KeyChar": "\u001b", - "ConsoleKey": "Oem4", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Tab", - "KeyChar": "\t", - "ConsoleKey": "Tab", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+\\", - "KeyChar": "\u001c", - "ConsoleKey": "Oem5", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "B", - "KeyChar": "B", - "ConsoleKey": "B", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+t", - "KeyChar": "\u0014", - "ConsoleKey": "T", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "F", - "KeyChar": "F", - "ConsoleKey": "F", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+u", - "KeyChar": "\u0015", - "ConsoleKey": "U", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "PageUp", - "KeyChar": "\u0000", - "ConsoleKey": "PageUp", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+DownArrow", - "KeyChar": "\u0000", - "ConsoleKey": "DownArrow", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "X", - "KeyChar": "X", - "ConsoleKey": "X", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+^", - "KeyChar": "\u001e", - "ConsoleKey": "D6", - "Modifiers": "Shift, Control", - "Investigate": false - }, - { - "Key": "{", - "KeyChar": "{", - "ConsoleKey": "Oem4", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "[", - "KeyChar": "[", - "ConsoleKey": "Oem4", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "7", - "KeyChar": "7", - "ConsoleKey": "D7", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "S", - "KeyChar": "S", - "ConsoleKey": "S", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+Shift+Enter", - "KeyChar": "\u0000", - "ConsoleKey": "Enter", - "Modifiers": "Shift, Control", - "Investigate": false - }, - { - "Key": "Alt+_", - "KeyChar": "_", - "ConsoleKey": "OemMinus", - "Modifiers": "Alt, Shift", - "Investigate": false - }, - { - "Key": "I", - "KeyChar": "I", - "ConsoleKey": "I", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+j", - "KeyChar": "\n", - "ConsoleKey": "J", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Shift+LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "\"", - "KeyChar": "\"", - "ConsoleKey": "Oem7", - "Modifiers": "Shift", - "Investigate": false - } -] diff --git a/test/KeyInfo-ru-RU-windows.json b/test/KeyInfo-ru-RU-windows.json deleted file mode 100644 index 13d6c4aed..000000000 --- a/test/KeyInfo-ru-RU-windows.json +++ /dev/null @@ -1,1654 +0,0 @@ -[ - { - "Key": "Shift+F8", - "KeyChar": "\u0000", - "ConsoleKey": "F8", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "u", - "KeyChar": "u", - "ConsoleKey": "U", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "(", - "KeyChar": "(", - "ConsoleKey": "D9", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Tab", - "KeyChar": "\t", - "ConsoleKey": "Tab", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+y", - "KeyChar": "y", - "ConsoleKey": "Y", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+d", - "KeyChar": "\u0004", - "ConsoleKey": "D", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "m", - "KeyChar": "m", - "ConsoleKey": "M", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+n", - "KeyChar": "\u000e", - "ConsoleKey": "N", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Home", - "KeyChar": "\u0000", - "ConsoleKey": "Home", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "=", - "KeyChar": "=", - "ConsoleKey": "OemPlus", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F4", - "KeyChar": "\u0000", - "ConsoleKey": "F4", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "{", - "KeyChar": "{", - "ConsoleKey": "Oem4", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "o", - "KeyChar": "o", - "ConsoleKey": "O", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+w", - "KeyChar": "\u0017", - "ConsoleKey": "W", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "|", - "KeyChar": "|", - "ConsoleKey": "Oem5", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "1", - "KeyChar": "1", - "ConsoleKey": "D1", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "v", - "KeyChar": "v", - "ConsoleKey": "V", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+i", - "KeyChar": "\t", - "ConsoleKey": "I", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "F7", - "KeyChar": "\u0000", - "ConsoleKey": "F7", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+F3", - "KeyChar": "\u0000", - "ConsoleKey": "F3", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+@", - "KeyChar": "\u0000", - "ConsoleKey": "D2", - "Modifiers": "Shift, Control", - "Investigate": false - }, - { - "Key": "Shift+PageDown", - "KeyChar": "\u0000", - "ConsoleKey": "PageDown", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "F2", - "KeyChar": "\u0000", - "ConsoleKey": "F2", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "$", - "KeyChar": "$", - "ConsoleKey": "D4", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": ".", - "KeyChar": ".", - "ConsoleKey": "OemPeriod", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+h", - "KeyChar": "h", - "ConsoleKey": "H", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+a", - "KeyChar": "\u0001", - "ConsoleKey": "A", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "#", - "KeyChar": "#", - "ConsoleKey": "D3", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+x", - "KeyChar": "\u0018", - "ConsoleKey": "X", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "\\", - "KeyChar": "\\", - "ConsoleKey": "Oem5", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F9", - "KeyChar": "\u0000", - "ConsoleKey": "F9", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "P", - "KeyChar": "P", - "ConsoleKey": "P", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "n", - "KeyChar": "n", - "ConsoleKey": "N", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "\u003c", - "KeyChar": "\u003c", - "ConsoleKey": "OemComma", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+]", - "KeyChar": "\u001d", - "ConsoleKey": "Oem6", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "O", - "KeyChar": "O", - "ConsoleKey": "O", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "?", - "KeyChar": "?", - "ConsoleKey": "Oem2", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "F8", - "KeyChar": "\u0000", - "ConsoleKey": "F8", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Alt+y", - "KeyChar": "\u0000", - "ConsoleKey": "Y", - "Modifiers": "Alt, Control", - "Investigate": false - }, - { - "Key": "q", - "KeyChar": "q", - "ConsoleKey": "Q", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+g", - "KeyChar": "g", - "ConsoleKey": "G", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "D", - "KeyChar": "D", - "ConsoleKey": "D", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+^", - "KeyChar": "\u001e", - "ConsoleKey": "D6", - "Modifiers": "Shift, Control", - "Investigate": true - }, - { - "Key": "[", - "KeyChar": "[", - "ConsoleKey": "Oem4", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+9", - "KeyChar": "9", - "ConsoleKey": "D9", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+u", - "KeyChar": "\u0015", - "ConsoleKey": "U", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "I", - "KeyChar": "I", - "ConsoleKey": "I", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+7", - "KeyChar": "7", - "ConsoleKey": "D7", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "M", - "KeyChar": "M", - "ConsoleKey": "M", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "E", - "KeyChar": "E", - "ConsoleKey": "E", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "@", - "KeyChar": "@", - "ConsoleKey": "D2", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "^", - "KeyChar": "^", - "ConsoleKey": "D6", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "_", - "KeyChar": "_", - "ConsoleKey": "OemMinus", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "~", - "KeyChar": "~", - "ConsoleKey": "Oem3", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+o", - "KeyChar": "\u000f", - "ConsoleKey": "O", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+C", - "KeyChar": "\u0003", - "ConsoleKey": "C", - "Modifiers": "Shift, Control", - "Investigate": true - }, - { - "Key": "e", - "KeyChar": "e", - "ConsoleKey": "E", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+?", - "KeyChar": "?", - "ConsoleKey": "Oem2", - "Modifiers": "Alt, Shift", - "Investigate": true - }, - { - "Key": "b", - "KeyChar": "b", - "ConsoleKey": "B", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "F5", - "KeyChar": "\u0000", - "ConsoleKey": "F5", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+w", - "KeyChar": "w", - "ConsoleKey": "W", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+Backspace", - "KeyChar": "\b", - "ConsoleKey": "Backspace", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "\"", - "KeyChar": "\"", - "ConsoleKey": "Oem7", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+h", - "KeyChar": "\b", - "ConsoleKey": "H", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+q", - "KeyChar": "q", - "ConsoleKey": "Q", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+q", - "KeyChar": "\u0011", - "ConsoleKey": "Q", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "x", - "KeyChar": "x", - "ConsoleKey": "X", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "\u0027", - "KeyChar": "\u0027", - "ConsoleKey": "Oem7", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "g", - "KeyChar": "g", - "ConsoleKey": "G", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Home", - "KeyChar": "\u0000", - "ConsoleKey": "Home", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "F3", - "KeyChar": "\u0000", - "ConsoleKey": "F3", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "S", - "KeyChar": "s", - "ConsoleKey": "S", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "c", - "KeyChar": "c", - "ConsoleKey": "C", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+l", - "KeyChar": "l", - "ConsoleKey": "L", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+r", - "KeyChar": "\u0012", - "ConsoleKey": "R", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "V", - "KeyChar": "V", - "ConsoleKey": "V", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "f", - "KeyChar": "f", - "ConsoleKey": "F", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "i", - "KeyChar": "i", - "ConsoleKey": "I", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "s", - "KeyChar": "s", - "ConsoleKey": "S", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+n", - "KeyChar": "n", - "ConsoleKey": "N", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+c", - "KeyChar": "c", - "ConsoleKey": "C", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Shift+Insert", - "KeyChar": "\u0000", - "ConsoleKey": "Insert", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+j", - "KeyChar": "j", - "ConsoleKey": "J", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "DownArrow", - "KeyChar": "\u0000", - "ConsoleKey": "DownArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "H", - "KeyChar": "H", - "ConsoleKey": "H", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+e", - "KeyChar": "\u0005", - "ConsoleKey": "E", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "2", - "KeyChar": "2", - "ConsoleKey": "D2", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+\\", - "KeyChar": "\u001c", - "ConsoleKey": "Oem5", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "-", - "KeyChar": "-", - "ConsoleKey": "OemMinus", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": ";", - "KeyChar": ";", - "ConsoleKey": "Oem1", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+m", - "KeyChar": "m", - "ConsoleKey": "M", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "U", - "KeyChar": "U", - "ConsoleKey": "U", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "!", - "KeyChar": "!", - "ConsoleKey": "D1", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "w", - "KeyChar": "w", - "ConsoleKey": "W", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "A", - "KeyChar": "A", - "ConsoleKey": "A", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Delete", - "KeyChar": "\u0000", - "ConsoleKey": "Delete", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "a", - "KeyChar": "a", - "ConsoleKey": "A", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+End", - "KeyChar": "\u0000", - "ConsoleKey": "End", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+x", - "KeyChar": "x", - "ConsoleKey": "X", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+Shift+LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "Shift, Control", - "Investigate": false - }, - { - "Key": "Alt+B", - "KeyChar": "B", - "ConsoleKey": "B", - "Modifiers": "Alt, Shift", - "Investigate": true - }, - { - "Key": "7", - "KeyChar": "7", - "ConsoleKey": "D7", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+[", - "KeyChar": "\u001b", - "ConsoleKey": "Oem4", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+_", - "KeyChar": "_", - "ConsoleKey": "OemMinus", - "Modifiers": "Alt, Shift", - "Investigate": true - }, - { - "Key": "Shift+Tab", - "KeyChar": "\t", - "ConsoleKey": "Tab", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+Backspace", - "KeyChar": "\b", - "ConsoleKey": "Backspace", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Shift+Escape", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "5", - "KeyChar": "5", - "ConsoleKey": "D5", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Spacebar", - "KeyChar": " ", - "ConsoleKey": "Spacebar", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+k", - "KeyChar": "k", - "ConsoleKey": "K", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Enter", - "KeyChar": "\r", - "ConsoleKey": "Enter", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": ",", - "KeyChar": ",", - "ConsoleKey": "OemComma", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Spacebar", - "KeyChar": " ", - "ConsoleKey": "Spacebar", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": ":", - "KeyChar": ":", - "ConsoleKey": "Oem1", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+d", - "KeyChar": "d", - "ConsoleKey": "D", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+i", - "KeyChar": "i", - "ConsoleKey": "I", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "+", - "KeyChar": "+", - "ConsoleKey": "OemPlus", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+\u003c", - "KeyChar": "\u003c", - "ConsoleKey": "OemComma", - "Modifiers": "Alt, Shift", - "Investigate": true - }, - { - "Key": "Ctrl+c", - "KeyChar": "\u0003", - "ConsoleKey": "C", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+t", - "KeyChar": "t", - "ConsoleKey": "T", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "z", - "KeyChar": "z", - "ConsoleKey": "Z", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+End", - "KeyChar": "\u0000", - "ConsoleKey": "End", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+g", - "KeyChar": "\u0007", - "ConsoleKey": "G", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "l", - "KeyChar": "l", - "ConsoleKey": "L", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "k", - "KeyChar": "k", - "ConsoleKey": "K", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Enter", - "KeyChar": "\n", - "ConsoleKey": "Enter", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "*", - "KeyChar": "*", - "ConsoleKey": "D8", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+PageDown", - "KeyChar": "\u0000", - "ConsoleKey": "PageDown", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Escape", - "KeyChar": "\u001b", - "ConsoleKey": "Escape", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+v", - "KeyChar": "v", - "ConsoleKey": "V", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+s", - "KeyChar": "\u0013", - "ConsoleKey": "S", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+b", - "KeyChar": "\u0002", - "ConsoleKey": "B", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "X", - "KeyChar": "X", - "ConsoleKey": "X", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Shift+RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+1", - "KeyChar": "1", - "ConsoleKey": "D1", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+8", - "KeyChar": "8", - "ConsoleKey": "D8", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "F1", - "KeyChar": "\u0000", - "ConsoleKey": "F1", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "0", - "KeyChar": "0", - "ConsoleKey": "D0", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+PageUp", - "KeyChar": "\u0000", - "ConsoleKey": "PageUp", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+F9", - "KeyChar": "\u0000", - "ConsoleKey": "F9", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+F5", - "KeyChar": "\u0000", - "ConsoleKey": "F5", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "j", - "KeyChar": "j", - "ConsoleKey": "J", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+UpArrow", - "KeyChar": "\u0000", - "ConsoleKey": "UpArrow", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "K", - "KeyChar": "K", - "ConsoleKey": "K", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+\u003e", - "KeyChar": "\u003e", - "ConsoleKey": "OemPeriod", - "Modifiers": "Alt, Shift", - "Investigate": true - }, - { - "Key": "Ctrl+z", - "KeyChar": "\u001a", - "ConsoleKey": "Z", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+5", - "KeyChar": "5", - "ConsoleKey": "D5", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+=", - "KeyChar": "=", - "ConsoleKey": "OemPlus", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+t", - "KeyChar": "\u0014", - "ConsoleKey": "T", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+F", - "KeyChar": "F", - "ConsoleKey": "F", - "Modifiers": "Alt, Shift", - "Investigate": true - }, - { - "Key": "Shift+Enter", - "KeyChar": "\r", - "ConsoleKey": "Enter", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Backspace", - "KeyChar": "\b", - "ConsoleKey": "Backspace", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "d", - "KeyChar": "d", - "ConsoleKey": "D", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+o", - "KeyChar": "o", - "ConsoleKey": "O", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "t", - "KeyChar": "t", - "ConsoleKey": "T", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "L", - "KeyChar": "L", - "ConsoleKey": "L", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Shift+Enter", - "KeyChar": "\u0000", - "ConsoleKey": "Enter", - "Modifiers": "Shift, Control", - "Investigate": false - }, - { - "Key": "Ctrl+f", - "KeyChar": "\u0006", - "ConsoleKey": "F", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "`", - "KeyChar": "`", - "ConsoleKey": "Oem3", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "/", - "KeyChar": "/", - "ConsoleKey": "Oem2", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Z", - "KeyChar": "Z", - "ConsoleKey": "Z", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "G", - "KeyChar": "G", - "ConsoleKey": "G", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+j", - "KeyChar": "\n", - "ConsoleKey": "J", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+Alt+]", - "KeyChar": "\u0000", - "ConsoleKey": "Oem6", - "Modifiers": "Alt, Control", - "Investigate": false - }, - { - "Key": "Shift+Home", - "KeyChar": "\u0000", - "ConsoleKey": "Home", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Y", - "KeyChar": "Y", - "ConsoleKey": "Y", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+k", - "KeyChar": "\u000b", - "ConsoleKey": "K", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "}", - "KeyChar": "}", - "ConsoleKey": "Oem6", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+PageUp", - "KeyChar": "\u0000", - "ConsoleKey": "PageUp", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+f", - "KeyChar": "f", - "ConsoleKey": "F", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+F7", - "KeyChar": "\u0000", - "ConsoleKey": "F7", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Shift+F3", - "KeyChar": "\u0000", - "ConsoleKey": "F3", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+3", - "KeyChar": "3", - "ConsoleKey": "D3", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+Alt+?", - "KeyChar": "\u0000", - "ConsoleKey": "Oem2", - "Modifiers": "Alt, Shift, Control", - "Investigate": true - }, - { - "Key": "\u0026", - "KeyChar": "\u0026", - "ConsoleKey": "D7", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "y", - "KeyChar": "y", - "ConsoleKey": "Y", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "8", - "KeyChar": "8", - "ConsoleKey": "D8", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+F8", - "KeyChar": "\u0000", - "ConsoleKey": "F8", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+s", - "KeyChar": "s", - "ConsoleKey": "S", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+F4", - "KeyChar": "\u0000", - "ConsoleKey": "F4", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+F2", - "KeyChar": "\u0000", - "ConsoleKey": "F2", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "]", - "KeyChar": "]", - "ConsoleKey": "Oem6", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "PageDown", - "KeyChar": "\u0000", - "ConsoleKey": "PageDown", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+F6", - "KeyChar": "\u0000", - "ConsoleKey": "F6", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+-", - "KeyChar": "-", - "ConsoleKey": "OemMinus", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "F6", - "KeyChar": "\u0000", - "ConsoleKey": "F6", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "3", - "KeyChar": "3", - "ConsoleKey": "D3", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "h", - "KeyChar": "h", - "ConsoleKey": "H", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "PageUp", - "KeyChar": "\u0000", - "ConsoleKey": "PageUp", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+_", - "KeyChar": "\u001f", - "ConsoleKey": "OemMinus", - "Modifiers": "Shift, Control", - "Investigate": true - }, - { - "Key": "Alt+F1", - "KeyChar": "\u0000", - "ConsoleKey": "F1", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+.", - "KeyChar": ".", - "ConsoleKey": "OemPeriod", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "N", - "KeyChar": "N", - "ConsoleKey": "N", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "End", - "KeyChar": "\u0000", - "ConsoleKey": "End", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+y", - "KeyChar": "\u0019", - "ConsoleKey": "Y", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+2", - "KeyChar": "2", - "ConsoleKey": "D2", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "R", - "KeyChar": "R", - "ConsoleKey": "R", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": ")", - "KeyChar": ")", - "ConsoleKey": "D0", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+Spacebar", - "KeyChar": " ", - "ConsoleKey": "Spacebar", - "Modifiers": "0", - "Investigate": true - }, - { - "Key": "Alt+r", - "KeyChar": "r", - "ConsoleKey": "R", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+p", - "KeyChar": "\u0010", - "ConsoleKey": "P", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+6", - "KeyChar": "6", - "ConsoleKey": "D6", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Delete", - "KeyChar": "\u0000", - "ConsoleKey": "Delete", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "B", - "KeyChar": "B", - "ConsoleKey": "B", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Shift+DownArrow", - "KeyChar": "\u0000", - "ConsoleKey": "DownArrow", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+Backspace", - "KeyChar": "", - "ConsoleKey": "Backspace", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Alt+u", - "KeyChar": "u", - "ConsoleKey": "U", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+p", - "KeyChar": "p", - "ConsoleKey": "P", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+a", - "KeyChar": "a", - "ConsoleKey": "A", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "p", - "KeyChar": "p", - "ConsoleKey": "P", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "W", - "KeyChar": "w", - "ConsoleKey": "W", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "\u003e", - "KeyChar": "\u003e", - "ConsoleKey": "OemPeriod", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Ctrl+v", - "KeyChar": "\u0016", - "ConsoleKey": "V", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Ctrl+l", - "KeyChar": "\f", - "ConsoleKey": "L", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "F", - "KeyChar": "F", - "ConsoleKey": "F", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+4", - "KeyChar": "4", - "ConsoleKey": "D4", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "4", - "KeyChar": "4", - "ConsoleKey": "D4", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "r", - "KeyChar": "r", - "ConsoleKey": "R", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "C", - "KeyChar": "C", - "ConsoleKey": "C", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+b", - "KeyChar": "b", - "ConsoleKey": "B", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Ctrl+m", - "KeyChar": "\r", - "ConsoleKey": "M", - "Modifiers": "Control", - "Investigate": false - }, - { - "Key": "Shift+LeftArrow", - "KeyChar": "\u0000", - "ConsoleKey": "LeftArrow", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "Alt+z", - "KeyChar": "z", - "ConsoleKey": "Z", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "Alt+0", - "KeyChar": "0", - "ConsoleKey": "D0", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "T", - "KeyChar": "T", - "ConsoleKey": "T", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Ctrl+Shift+RightArrow", - "KeyChar": "\u0000", - "ConsoleKey": "RightArrow", - "Modifiers": "Shift, Control", - "Investigate": false - }, - { - "Key": "6", - "KeyChar": "6", - "ConsoleKey": "D6", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "Alt+e", - "KeyChar": "e", - "ConsoleKey": "E", - "Modifiers": "Alt", - "Investigate": false - }, - { - "Key": "9", - "KeyChar": "9", - "ConsoleKey": "D9", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "%", - "KeyChar": "%", - "ConsoleKey": "D5", - "Modifiers": "Shift", - "Investigate": false - }, - { - "Key": "J", - "KeyChar": "J", - "ConsoleKey": "J", - "Modifiers": "0", - "Investigate": false - }, - { - "Key": "UpArrow", - "KeyChar": "\u0000", - "ConsoleKey": "UpArrow", - "Modifiers": "0", - "Investigate": false - } -] diff --git a/test/KeyboardLayouts.cs b/test/KeyboardLayouts.cs index 29e4629ad..ff53bbe9e 100644 --- a/test/KeyboardLayouts.cs +++ b/test/KeyboardLayouts.cs @@ -1,135 +1,35 @@ using System; using System.Collections.Generic; using System.Dynamic; -using System.IO; +using Microsoft.PowerShell; namespace Test { public class KeyboardLayout : DynamicObject { - public class KeyInfo + public override bool TryGetMember(GetMemberBinder binder, out object result) { - public string Key { get; set; } - public string KeyChar { get; set; } - public string ConsoleKey { get; set; } - public string Modifiers { get; set; } - - public static string CharAsPropertyName(char c) + // Map the property name and try to compose ConsoleKeyInfo + var mappedName = MapPropertyNameToChord(binder.Name); + + try { - switch (c) + // Use PSReadLine's ConsoleKeyChordConverter to parse it + var keys = ConsoleKeyChordConverter.Convert(mappedName); + + // We expect a single key for this use case + if (keys.Length == 1) { - case ' ': return "Spacebar"; - case '\r': return "Enter"; - case '\n': return "Enter"; - case '`': return "Backtick"; - case '~': return "Tilde"; - case '!': return "Bang"; - case '@': return "At"; - case '#': return "Pound"; - case '$': return "Dollar"; - case '%': return "Percent"; - case '^': return "Uphat"; - case '&': return "Ampersand"; - case '*': return "Star"; - case '(': return "LParen"; - case ')': return "RParen"; - case '_': return "Underbar"; - case '=': return "Equals"; - case '-': return "Minus"; - case '+': return "Plus"; - case '[': return "LBracket"; - case ']': return "RBracket"; - case '{': return "LBrace"; - case '}': return "RBrace"; - case '\\': return "Backslash"; - case '|': return "Pipe"; - case ';': return "Semicolon"; - case '\'': return "SQuote"; - case ':': return "Colon"; - case '"': return "DQuote"; - case ',': return "Comma"; - case '.': return "Period"; - case '/': return "Slash"; - case '<': return "Less"; - case '>': return "Greater"; - case '?': return "Question"; - case '0': return "D0"; - case '1': return "D1"; - case '2': return "D2"; - case '3': return "D3"; - case '4': return "D4"; - case '5': return "D5"; - case '6': return "D6"; - case '7': return "D7"; - case '8': return "D8"; - case '9': return "D9"; - } - - return null; - } - - public string KeyAsPropertyName() - { - string alt = null; - char lastChar = Key[Key.Length - 1]; - switch (lastChar) { - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - if (Key.Length == 1) - { - alt = CharAsPropertyName(lastChar); - } - break; - - default: - alt = CharAsPropertyName(lastChar); - break; - } - var key = (alt != null) - ? Key.Substring(0, Key.Length - 1) + alt - : Key; - return key.Replace('+', '_'); - } - - public ConsoleKeyInfo AsConsoleKeyInfo() - { - if (!Enum.TryParse(ConsoleKey, out var consoleKey)) { - throw new InvalidCastException(); + result = keys[0]; + return true; } - return new ConsoleKeyInfo(KeyChar[0], consoleKey, - shift: Modifiers.Contains("Shift"), - alt: Modifiers.Contains("Alt"), - control: Modifiers.Contains("Control")); } - } - - public override string ToString() - { - return _layout; - } - - private readonly string _layout; - private readonly Dictionary _keyMap = new Dictionary(); - - public KeyboardLayout(string lang, string os) - { - var keyInfos = File.ReadAllText($"KeyInfo-{lang}-{os}.json"); - foreach (var keyInfo in Newtonsoft.Json.JsonConvert.DeserializeObject>(keyInfos)) + catch { - var propName = keyInfo.KeyAsPropertyName(); - var consoleKeyInfo = keyInfo.AsConsoleKeyInfo(); - _keyMap.Add(propName, consoleKeyInfo); + // If the conversion fails, fall through to special cases } - _layout = lang; - } - - public override bool TryGetMember(GetMemberBinder binder, out object result) - { - if (_keyMap.TryGetValue(binder.Name, out var keyInfo)) { - result = keyInfo; - return true; - } + // Handle special volume keys that aren't in ConsoleKeyChordConverter switch (binder.Name) { case "VolumeUp": result = new ConsoleKeyInfo('\0', ConsoleKey.VolumeUp, false, false, false); @@ -146,22 +46,65 @@ public override bool TryGetMember(GetMemberBinder binder, out object result) return false; } + private string MapPropertyNameToChord(string propertyName) + { + // Define symbol mappings + var symbolMap = new Dictionary + { + ["DQuote"] = "\"", + ["SQuote"] = "'", + ["Slash"] = "/", + ["Backslash"] = "\\", + ["Percent"] = "%", + ["Dollar"] = "$", + ["Comma"] = ",", + ["Period"] = ".", + ["Tilde"] = "~", + ["Question"] = "?", + ["Uphat"] = "^", + ["Underbar"] = "_", + ["LBracket"] = "[", + ["RBracket"] = "]", + ["Greater"] = ">", + ["Less"] = "<", + ["Minus"] = "-", + ["Equals"] = "=", + ["At"] = "@" + }; + + // Split on underscore, map symbols, and join with plus + var parts = propertyName.Split('_'); + var result = new List(); + + foreach (var part in parts) + { + result.Add(symbolMap.TryGetValue(part, out var mapped) ? mapped : part); + } + + return string.Join("+", result); + } + public override bool TryGetIndex(GetIndexBinder binder, object[] indexes, out object result) { result = null; - if (indexes.Length == 1) + if (indexes.Length == 1 && indexes[0] is char c) { - if (indexes[0] is char c) + // Try to get the key using the character directly + try { - var propName = KeyInfo.CharAsPropertyName(c) ?? c.ToString(); - if (_keyMap.TryGetValue(propName, out var keyInfo)) + var keys = ConsoleKeyChordConverter.Convert(c.ToString()); + if (keys.Length == 1) { - result = keyInfo; + result = keys[0]; return true; } } + catch + { + // If conversion fails, we can't handle this character + } } return false; } } -} \ No newline at end of file +} diff --git a/test/PSReadLine.Tests.csproj b/test/PSReadLine.Tests.csproj index 70d0b9fe9..373868f65 100644 --- a/test/PSReadLine.Tests.csproj +++ b/test/PSReadLine.Tests.csproj @@ -42,14 +42,6 @@ - - PreserveNewest - PreserveNewest - - - PreserveNewest - PreserveNewest - assets\%(RecursiveDir)\%(FileName)%(Extension) PreserveNewest diff --git a/test/UnitTestReadLine.cs b/test/UnitTestReadLine.cs index d09e2abc9..e5f3f0fb8 100644 --- a/test/UnitTestReadLine.cs +++ b/test/UnitTestReadLine.cs @@ -15,8 +15,6 @@ using Xunit; using Xunit.Abstractions; -[assembly: CollectionBehavior(DisableTestParallelization = true)] - namespace Test { internal class MockedMethods : IPSConsoleReadLineMockableMethods @@ -115,11 +113,11 @@ public enum TokenClassification public abstract partial class ReadLine { - protected ReadLine(ConsoleFixture fixture, ITestOutputHelper output, string lang, string os) + protected ReadLine(ConsoleFixture fixture, ITestOutputHelper output) { Output = output; Fixture = fixture; - Fixture.Initialize(lang, os); + Fixture.Initialize(); } internal dynamic _ => Fixture.KbLayout; @@ -551,9 +549,6 @@ private void TestSetup(KeyMode keyMode, params KeyHandler[] keyHandlers) private void TestSetup(TestConsole console, KeyMode keyMode, params KeyHandler[] keyHandlers) { - Skip.If(WindowsConsoleFixtureHelper.GetKeyboardLayout() != this.Fixture.Lang, - $"Keyboard layout must be set to {this.Fixture.Lang}"); - _console = console ?? new TestConsole(_); _mockedMethods = new MockedMethods(); @@ -642,30 +637,11 @@ private void TestSetup(TestConsole console, KeyMode keyMode, params KeyHandler[] } } - public class en_US_Windows : Test.ReadLine, IClassFixture + public class DefaultTests : ReadLine, IClassFixture { - public en_US_Windows(ConsoleFixture fixture, ITestOutputHelper output) - : base(fixture, output, "en-US", "windows") + public DefaultTests(ConsoleFixture fixture, ITestOutputHelper output) + : base(fixture, output) { } } - - public class fr_FR_Windows : Test.ReadLine, IClassFixture - { - public fr_FR_Windows(ConsoleFixture fixture, ITestOutputHelper output) - : base(fixture, output, "fr-FR", "windows") - { - } - - // I don't think this is actually true for real French keyboard, but on my US keyboard, - // I have to use Alt 6 0 for `<` and Alt 6 2 for `>` and that means the Alt+< and Alt+> - // bindings can't work. - internal override bool KeyboardHasLessThan => false; - internal override bool KeyboardHasGreaterThan => false; - - // These are most likely an issue with .Net on Windows - AltGr turns into Ctrl+Alt and `]` or `@` - // requires AltGr, so you can't tell the difference b/w `]` and `Ctrl+]`. - internal override bool KeyboardHasCtrlRBracket => false; - internal override bool KeyboardHasCtrlAt => false; - } } diff --git a/test/xunit.runner.json b/test/xunit.runner.json new file mode 100644 index 000000000..3f3645a0a --- /dev/null +++ b/test/xunit.runner.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://xunit.net/schema/current/xunit.runner.schema.json", + "appDomain": "denied", + "parallelizeTestCollections": false, + "methodDisplay": "method" +} diff --git a/tools/helper.psm1 b/tools/helper.psm1 index 9ffddaebf..ad38235e3 100644 --- a/tools/helper.psm1 +++ b/tools/helper.psm1 @@ -208,14 +208,13 @@ function Start-TestRun $testResultFolder = 'TestResults' - function RunXunitTestsInNewProcess ([string] $Layout, [string] $OperatingSystem) + function RunXunitTestsInNewProcess () { - $filter = "FullyQualifiedName~Test.{0}_{1}" -f ($Layout -replace '-','_'), $OperatingSystem $testResultFile = "xUnitTestResults.{0}.xml" -f $Layout $testResultFile = Join-Path $testResultFolder $testResultFile $stdOutput, $stdError = @(New-TemporaryFile; New-TemporaryFile) - $arguments = 'test', '--no-build', '-c', $Configuration, '-f', $Framework, '--filter', $filter, '--logger', "xunit;LogFilePath=$testResultFile", '--logger', 'console;verbosity=normal' + $arguments = 'test', '--no-build', '-c', $Configuration, '-f', $Framework, '--logger', "xunit;LogFilePath=$testResultFile", '--logger', 'console;verbosity=normal' Start-Process -FilePath dotnet -Wait -RedirectStandardOutput $stdOutput -RedirectStandardError $stdError -ArgumentList $arguments Get-Content $stdOutput, $stdError @@ -226,73 +225,9 @@ function Start-TestRun { Push-Location "$RepoRoot/test" - $xUnitTestExecuted = $true - if ($IsWindowsEnv) - { - if ($env:GITHUB_ACTIONS -or $env:TF_BUILD) - { - # GitHub Actions CI builder only has en-US keyboard layout installed. - # We have to run tests from a new process because `GetCurrentKeyboardLayout` simply fails when called from - # the `pwsh` process started by AppVeyor. Our xUnit tests depends on `GetCurrentKeyboardLayout` to tell if - # a test case should run. - RunXunitTestsInNewProcess -Layout 'en-US' -OperatingSystem 'Windows' - } - else - { - if (-not ("KeyboardLayoutHelper" -as [type])) - { - Add-Type $KeyboardLayoutHelperCode - } - - try - { - $xUnitTestExecuted = $false - - # Remember the current keyboard layout, changes are system wide and restoring - # is the nice thing to do. - $savedLayout = [KeyboardLayoutHelper]::GetCurrentKeyboardLayout() - - # We want to run tests in as many layouts as possible. We have key info - # data for layouts that might not be installed, and tests would fail - # if we don't set the system wide layout to match the key data we'll use. - $layouts = [KeyboardLayoutHelper]::GetKeyboardLayouts() - Write-Log "Available layouts: $layouts" - - foreach ($layout in $layouts) - { - if (Test-Path "KeyInfo-${layout}-windows.json") - { - Write-Log "Testing $layout ..." - $null = [KeyboardLayoutHelper]::SetKeyboardLayout($layout) - - # We have to use Start-Process so it creates a new window, because the keyboard - # layout change won't be picked up by any processes running in the current conhost. - RunXunitTestsInNewProcess -Layout $layout -OperatingSystem 'Windows' - $xUnitTestExecuted = $true - } - else - { - Write-Log "Testing not supported for the keyboard layout '$layout'." - } - } - } - finally - { - # Restore the original keyboard layout - $null = [KeyboardLayoutHelper]::SetKeyboardLayout($savedLayout) - } - } - } - else - { - RunXunitTestsInNewProcess -Layout 'en-US' -OperatingSystem 'Linux' - } - - if ($xUnitTestExecuted) - { - # Check to see if there were any failures in xUnit tests, and throw exception to fail the build if so. - Get-ChildItem $testResultFolder | Test-XUnitTestResults > $null - } + RunXunitTestsInNewProcess + # Check to see if there were any failures in xUnit tests, and throw exception to fail the build if so. + Get-ChildItem $testResultFolder | Test-XUnitTestResults > $null } finally { From 571cf40bb388aebd7b6e35190cf6f51702263fd9 Mon Sep 17 00:00:00 2001 From: Andy Jordan <2226434+andyleejordan@users.noreply.github.com> Date: Mon, 11 Aug 2025 15:57:55 -0700 Subject: [PATCH 3/3] WIP: Test `VirtualTerminal` in CI --- PSReadLine/PlatformWindows.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PSReadLine/PlatformWindows.cs b/PSReadLine/PlatformWindows.cs index c7e0313b9..eccdbd271 100644 --- a/PSReadLine/PlatformWindows.cs +++ b/PSReadLine/PlatformWindows.cs @@ -139,7 +139,7 @@ internal static IConsole OneTimeInit(PSConsoleReadLine singleton) _singleton = singleton; var breakHandlerGcHandle = GCHandle.Alloc(new BreakHandler(OnBreak)); SetConsoleCtrlHandler((BreakHandler)breakHandlerGcHandle.Target, true); - _enableVtOutput = !Console.IsOutputRedirected && SetConsoleOutputVirtualTerminalProcessing(); + _enableVtOutput = true; // !Console.IsOutputRedirected && SetConsoleOutputVirtualTerminalProcessing(); _terminalOwnerThreadId = GetTerminalOwnerThreadId(); return _enableVtOutput ? new VirtualTerminal() : new LegacyWin32Console();