Skip to content

Commit

Permalink
menubar.cc: Add F12 Shortcut to Screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
MasonT8198 authored and mborgerson committed May 8, 2022
1 parent 41e9c66 commit 722579b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/xui/menubar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ void ProcessKeyboardShortcuts(void)
monitor_window.ToggleOpen();
}

if (ImGui::IsKeyPressed(ImGuiKey_F12)) {
ActionScreenshot();
}

#if defined(DEBUG_NV2A_GL) && defined(CONFIG_RENDERDOC)
if (ImGui::IsKeyPressed(ImGuiKey_F10)) {
nv2a_dbg_renderdoc_capture_frames(1);
Expand All @@ -82,7 +86,7 @@ void ShowMainMenu()
if (ImGui::BeginMenu("Machine"))
{
if (ImGui::MenuItem(running ? "Pause" : "Resume", SHORTCUT_MENU_TEXT(P))) ActionTogglePause();
if (ImGui::MenuItem("Screenshot")) ActionScreenshot();
if (ImGui::MenuItem("Screenshot", "F12")) ActionScreenshot();

ImGui::Separator();

Expand Down

0 comments on commit 722579b

Please sign in to comment.