Tools: Item Picker: Mouse button can be changed by holding Ctrl+Shift. (#2673)

This commit is contained in:
ocornut
2022-07-07 14:12:15 +02:00
parent 92d0924b82
commit a7a25ee19d
4 changed files with 17 additions and 4 deletions

View File

@ -7805,7 +7805,8 @@ void ShowExampleAppDocuments(bool* p_open)
if (ImGui::MenuItem("Close All Documents", NULL, false, open_count > 0))
for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++)
app.Documents[doc_n].DoQueueClose();
if (ImGui::MenuItem("Exit", "Alt+F4")) {}
if (ImGui::MenuItem("Exit", "Ctrl+F4") && p_open)
*p_open = false;
ImGui::EndMenu();
}
ImGui::EndMenuBar();