diff --git a/imgui.cpp b/imgui.cpp index 757d405d1..37dadd83f 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -790,9 +790,10 @@ ImGuiIO::ImGuiIO() // Set OS X style defaults based on __APPLE__ compile time flag #ifdef __APPLE__ - WordMovementUsesAltKey = true; // Text editing cursor movement using Alt instead of Ctrl - ShortcutsUseSuperKey = true; // Shortcuts using Cmd/Super instead of Ctrl - DoubleClickSelectsWord = true; // Double click selects by word instead of selecting whole text + WordMovementUsesAltKey = true; // OS X style: Text editing cursor movement using Alt instead of Ctrl + ShortcutsUseSuperKey = true; // OS X style: Shortcuts using Cmd/Super instead of Ctrl + DoubleClickSelectsWord = true; // OS X style: Double click selects by word instead of selecting whole text + MultiSelectUsesSuperKey = true; // OS X style: Multi-selection in lists uses Cmd/Super instead of Ctrl #endif } diff --git a/imgui.h b/imgui.h index 0d8a4d2c1..2c1877e5c 100644 --- a/imgui.h +++ b/imgui.h @@ -712,6 +712,7 @@ struct ImGuiIO bool WordMovementUsesAltKey; // = defined(__APPLE__) // OS X style: Text editing cursor movement using Alt instead of Ctrl bool ShortcutsUseSuperKey; // = defined(__APPLE__) // OS X style: Shortcuts using Cmd/Super instead of Ctrl bool DoubleClickSelectsWord; // = defined(__APPLE__) // OS X style: Double click selects by word instead of selecting whole text + bool MultiSelectUsesSuperKey; // = defined(__APPLE__) // OS X style: Multi-selection in lists uses Cmd/Super instead of Ctrl [unused yet] //------------------------------------------------------------------ // User Functions