mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 01:17:00 +00:00
IO: Added unused MultiSelectUsesSuperKey dummy field to convey semantic for OS X compatible behavior (#473)
This commit is contained in:
parent
aa7a29cdbf
commit
f48fc51777
@ -790,9 +790,10 @@ ImGuiIO::ImGuiIO()
|
|||||||
|
|
||||||
// Set OS X style defaults based on __APPLE__ compile time flag
|
// Set OS X style defaults based on __APPLE__ compile time flag
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
WordMovementUsesAltKey = true; // Text editing cursor movement using Alt instead of Ctrl
|
WordMovementUsesAltKey = true; // OS X style: Text editing cursor movement using Alt instead of Ctrl
|
||||||
ShortcutsUseSuperKey = true; // Shortcuts using Cmd/Super instead of Ctrl
|
ShortcutsUseSuperKey = true; // OS X style: Shortcuts using Cmd/Super instead of Ctrl
|
||||||
DoubleClickSelectsWord = true; // Double click selects by word instead of selecting whole text
|
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
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1
imgui.h
1
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 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 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 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
|
// User Functions
|
||||||
|
Loading…
Reference in New Issue
Block a user