From c273e9125cb7e6944973da3019c579b14b8e3dfa Mon Sep 17 00:00:00 2001 From: Bruno Herbelin Date: Sat, 18 Jun 2022 11:30:40 +0200 Subject: [PATCH] F12 for enable/disable output replacing the 'END' key that is not available on many keyboards. --- UserInterfaceManager.cpp | 4 ++-- UserInterfaceManager.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/UserInterfaceManager.cpp b/UserInterfaceManager.cpp index 175b1a4..d17bf7a 100644 --- a/UserInterfaceManager.cpp +++ b/UserInterfaceManager.cpp @@ -379,7 +379,7 @@ void UserInterface::handleKeyboard() Mixer::manager().setView(View::LAYER); else if (ImGui::IsKeyPressed( GLFW_KEY_F4, false )) Mixer::manager().setView(View::TEXTURE); - else if (ImGui::IsKeyPressed( GLFW_KEY_F12, false )) + else if (ImGui::IsKeyPressed( GLFW_KEY_PRINT_SCREEN, false )) StartScreenshot(); // button home to toggle menu else if (ImGui::IsKeyPressed( GLFW_KEY_HOME, false )) @@ -405,7 +405,7 @@ void UserInterface::handleKeyboard() WorkspaceWindow::restoreWorkspace(); esc_repeat_ = false; } - else if (ImGui::IsKeyPressed( GLFW_KEY_END, false )) { + else if (ImGui::IsKeyPressed( GLFW_KEY_F12, false )) { Settings::application.render.disabled = !Settings::application.render.disabled; } // Space bar diff --git a/UserInterfaceManager.h b/UserInterfaceManager.h index 0c26493..b82971a 100644 --- a/UserInterfaceManager.h +++ b/UserInterfaceManager.h @@ -67,7 +67,7 @@ #define MENU_CAPTUREFRAME ICON_FA_CAMERA_RETRO " Capture frame" #define SHORTCUT_CAPTUREFRAME CTRL_MOD "Shitf+R" #define MENU_OUTPUTDISABLE ICON_FA_EYE_SLASH " Disable" -#define SHORTCUT_OUTPUTDISABLE "END" +#define SHORTCUT_OUTPUTDISABLE "F12" #define MENU_OUTPUTFULLSCREEN ICON_FA_EXPAND_ALT " Fullscreen window" #define SHORTCUT_OUTPUTFULLSCREEN CTRL_MOD "F" #define MENU_CLOSE ICON_FA_TIMES " Close"