From 93b8a62d28f9427f0979d62b71f12fb2858064ee Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 11 Sep 2020 11:17:56 +0800 Subject: ... --- src/win/native/Keyboard.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/win/native/Keyboard.cpp') diff --git a/src/win/native/Keyboard.cpp b/src/win/native/Keyboard.cpp index aa22e4a4..929ca737 100644 --- a/src/win/native/Keyboard.cpp +++ b/src/win/native/Keyboard.cpp @@ -66,9 +66,9 @@ KeyCode VirtualKeyToKeyCode(int virtual_key) { KeyModifier RetrieveKeyMofifier() { KeyModifier result{0}; - if (::GetKeyState(VK_SHIFT) < 0) result |= key_modifiers::shift; - if (::GetKeyState(VK_CONTROL) < 0) result |= key_modifiers::ctrl; - if (::GetKeyState(VK_MENU) < 0) result |= key_modifiers::alt; + if (::GetKeyState(VK_SHIFT) < 0) result |= KeyModifiers::shift; + if (::GetKeyState(VK_CONTROL) < 0) result |= KeyModifiers::ctrl; + if (::GetKeyState(VK_MENU) < 0) result |= KeyModifiers::alt; return result; } } // namespace cru::platform::native::win -- cgit v1.2.3