We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db1c7f4 commit e35c0eeCopy full SHA for e35c0ee
1 file changed
src/screenshot_tool.cpp
@@ -446,6 +446,16 @@ void ScreenshotTool::HandleShortcutsInput()
446
ImGui::ClearActiveID();
447
}
448
449
+ if (ImGui::Shortcut(ImGuiKey_A | ImGuiMod_Ctrl, ImGuiInputFlags_RouteGlobal))
450
+ {
451
+ m_selection.start = point_t{ m_image_origin.x, m_image_origin.y };
452
+
453
+ m_selection.end = point_t{ m_image_origin.x + static_cast<float>(m_screenshot.w),
454
+ m_image_origin.y + static_cast<float>(m_screenshot.h) };
455
456
+ m_state = ToolState::Selected;
457
+ }
458
459
if (ImGui::Shortcut(ImGuiKey_Z | ImGuiMod_Ctrl, ImGuiInputFlags_RouteGlobal) && !m_annotations.empty())
460
m_annotations.pop_back();
461
0 commit comments