From f48fc51777291bbe44b88fe4a936744000f39613 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sat, 2 Apr 2016 18:58:42 +0200 Subject: [PATCH] IO: Added unused MultiSelectUsesSuperKey dummy field to convey semantic for OS X compatible behavior (#473) --- imgui.cpp | 7 ++++--- imgui.h | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) 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