Change key for debug menu to F10 and for stats to F11

F12 is used by Visual Studio debugger to trigger a breakpoint and apparently it cannot be changed:

"The F12 key is reserved for use by the debugger at all times, so it should not be registered as a hot key. Even when you are not debugging an application, F12 is reserved in case a kernel-mode debugger or a just-in-time debugger is resident."
Source: https://msdn.microsoft.com/en-us/library/windows/desktop/ms646309.aspx?f=255&MSPPError=-2147217396
1008-fix
MrSimbax 2018-07-25 21:38:47 +02:00
parent f93fd61c26
commit 32d3d1eb92
3 changed files with 3 additions and 3 deletions

View File

@ -431,7 +431,7 @@ bool CEngine::ProcessEvent(const Event &event)
{
auto data = event.GetData<KeyEventData>();
if (data->key == KEY(F12))
if (data->key == KEY(F11))
{
m_showStats = !m_showStats;
return false;

View File

@ -779,7 +779,7 @@ bool CRobotMain::ProcessEvent(Event &event)
if (IsPhaseWithWorld(m_phase))
{
if (data->key == KEY(F11))
if (data->key == KEY(F10))
{
m_debugMenu->ToggleInterface();
return false;

View File

@ -39,7 +39,7 @@ class CInterface;
/**
* \class CDebugMenu
* \brief Handles debug menu (F11)
* \brief Handles debug menu (F10)
*
* There should always be only one instance of this class for each associated CRobotMain class.
*/