Added option to disable menu keys under Windows
Former-commit-id: a596eb7ab2a24a7246d0bf08eeb00a3d746639d8
This commit is contained in:
parent
4b783f6f6f
commit
c358e5ab6d
|
|
@ -50,4 +50,7 @@
|
|||
// Protège les classes des accès concurrentiels
|
||||
//#define NAZARA_UTILITY_THREADSAFE 1
|
||||
|
||||
// Sous Windows, fait en sorte que les touches ALT et F10 n'activent pas le menu de la fenêtre
|
||||
#define NAZARA_UTILITY_WINDOWS_DISABLE_MENU_KEYS 1
|
||||
|
||||
#endif // NAZARA_CONFIG_UTILITY_HPP
|
||||
|
|
|
|||
|
|
@ -960,6 +960,12 @@ bool NzWindowImpl::HandleMessage(HWND window, UINT message, WPARAM wParam, LPARA
|
|||
}
|
||||
}
|
||||
|
||||
#if NAZARA_UTILITY_WINDOWS_DISABLE_MENU_KEYS
|
||||
// http://msdn.microsoft.com/en-us/library/windows/desktop/ms646360(v=vs.85).aspx
|
||||
if (message == WM_SYSCOMMAND && wParam == SC_KEYMENU)
|
||||
return true;
|
||||
#endif
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue