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:
parent
fc1a54c208
commit
2e4792d51e
3 changed files with 63 additions and 13 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue