- const bool isAltDown = ::GetKeyState(VK_MENU) < 0;
-
- // Only eat VK_RETURN if not being used by the application in conjunction with
- // modifiers
- if ( msg->wParam == VK_RETURN && !wxIsCtrlDown() && !wxIsShiftDown() && !isAltDown)
+ // Only eat VK_RETURN if not being used by the application in
+ // conjunction with modifiers
+ if ( (msg->wParam == VK_RETURN) && !wxIsAnyModifierDown() )