X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/310df81bd84bc2d146e4cef78a6e38445696bf7a..8def743e8fcd51ba3e68cb6b59154d3557e18f79:/src/msw/window.cpp diff --git a/src/msw/window.cpp b/src/msw/window.cpp index bba5e56705..edc10844ea 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -130,8 +130,8 @@ wxWindow *wxFindWinFromHandle(WXHWND hWnd); static void TranslateKbdEventToMouse(wxWindow *win, int *x, int *y, WPARAM *flags); // get the current state of SHIFT/CTRL keys -static inline bool IsShiftDown() { return GetKeyState(VK_SHIFT)& 0x100 != 0; } -static inline bool IsCtrlDown() { return GetKeyState(VK_CONTROL)& 0x100 != 0; } +static inline bool IsShiftDown() { return (GetKeyState(VK_SHIFT) & 0x100) != 0; } +static inline bool IsCtrlDown() { return (GetKeyState(VK_CONTROL) & 0x100) != 0; } // --------------------------------------------------------------------------- // event tables