Fix KBM compile time warnings (#2912)

This commit is contained in:
Arjun Balgovind
2020-05-12 11:32:17 -07:00
committed by GitHub
parent e723e87c74
commit 1de93be0f0
2 changed files with 3 additions and 1 deletions

View File

@@ -159,6 +159,8 @@ namespace KeyboardManagerHelper
return L"Shortcut cannot have more than one action key";
case ErrorType::ShortcutMaxShortcutSizeOneActionKey:
return L"Shortcuts can only have up to 2 modifier keys";
default:
return L"Unexpected error";
}
}
}

View File

@@ -99,7 +99,7 @@ DWORD Shortcut::GetWinKey(const ModifierKey& input) const
//return VK_LWIN by default
return VK_LWIN;
}
else if (input == ModifierKey::Both)
else
{
return CommonSharedConstants::VK_WIN_BOTH;
}