Fix win32 alt bug

This commit is contained in:
Eduardo Bart 2013-03-03 00:00:13 -03:00
parent 62921dee9b
commit c392bcca90
3 changed files with 6 additions and 18 deletions

View File

@ -169,7 +169,3 @@ std::string Application::getOs()
#endif
}
std::string Application::getBuildDate()
{
return std::string(__DATE__);
}

View File

@ -54,7 +54,7 @@ public:
std::string getCharset() { return m_charset; }
std::string getBuildCompiler() { return BUILD_COMPILER; }
std::string getBuildDate();
std::string getBuildDate() { return std::string(__DATE__); }
std::string getBuildRevision() { return BUILD_REVISION; }
std::string getBuildCommit() { return BUILD_COMMIT; }
std::string getBuildType() { return BUILD_TYPE; }

View File

@ -619,20 +619,12 @@ LRESULT WIN32Window::windowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
processKeyUp(retranslateVirtualKey(wParam, lParam));
break;
}
case WM_SYSKEYUP:
case WM_SYSKEYDOWN: {
// F10 is the shortcut key to enter a windows menu, this is a workaround to get F10 working
if(wParam != VK_F10) {
if(wParam != VK_MENU && wParam != VK_LMENU && wParam != VK_RMENU)
return DefWindowProc(hWnd, uMsg, wParam, lParam);
else
return 0;
} else {
if(uMsg == WM_SYSKEYUP)
case WM_SYSKEYUP: {
processKeyUp(retranslateVirtualKey(wParam, lParam));
else
processKeyDown(retranslateVirtualKey(wParam, lParam));
break;
}
case WM_SYSKEYDOWN: {
processKeyDown(retranslateVirtualKey(wParam, lParam));
break;
}
case WM_LBUTTONDOWN: {