We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44ee383 commit 7352d86Copy full SHA for 7352d86
textselect.cpp
@@ -294,7 +294,15 @@ void TextSelect::update() {
294
295
drawSelection(cursorPosStart);
296
297
+ // Backwards compatibility for Dear ImGui < v1.90.7
298
+ // To be removed after 2-3 Dear ImGui updates.
299
+#if IMGUI_VERSION_NUM >= 19070
300
+ ImGuiKey keyCtrl = ImGuiMod_Ctrl;
301
+#else
302
+ ImGuiKey keyCtrl = ImGuiMod_Shortcut;
303
+#endif
304
+
305
// Keyboard shortcuts
- if (ImGui::Shortcut(ImGuiMod_Ctrl | ImGuiKey_A)) selectAll();
- else if (ImGui::Shortcut(ImGuiMod_Ctrl | ImGuiKey_C)) copy();
306
+ if (ImGui::Shortcut(keyCtrl | ImGuiKey_A)) selectAll();
307
+ else if (ImGui::Shortcut(keyCtrl | ImGuiKey_C)) copy();
308
}
0 commit comments