Helper.cs
1 // Copyright (c) Microsoft Corporation 2 // The Microsoft Corporation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 namespace Microsoft.CmdPal.UI.ViewModels.Settings; 6 7 public static class Helper 8 { 9 private static readonly global::PowerToys.Interop.LayoutMapManaged LayoutMap = new(); 10 11 public static string GetKeyName(uint key) 12 { 13 return LayoutMap.GetKeyName(key); 14 } 15 16 public static uint GetKeyValue(string key) 17 { 18 return LayoutMap.GetKeyValue(key); 19 } 20 21 public static readonly uint VirtualKeyWindows = global::PowerToys.Interop.Constants.VK_WIN_BOTH; 22 }