1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Fix to disable VS check when VS is not required

This commit is contained in:
Brian Fiete 2021-02-06 06:55:32 -08:00
parent fc1a54c208
commit 2e4792d51e
3 changed files with 63 additions and 13 deletions

View file

@ -106,6 +106,24 @@ namespace Beefy.widgets
extension KeyCode
{
public bool IsModifier
{
get
{
switch (this)
{
case .LWin,
.RWin,
.Alt,
.Control,
.Command:
return true;
default:
return false;
}
}
}
public static Result<KeyCode> Parse(StringView str)
{
if (str.Length == 1)