InputText(): Added io.DoubleClickSelectsWord option for OS X compatible behavior (#473)

This commit is contained in:
ocornut
2016-04-02 18:57:50 +02:00
parent 587fc60f25
commit aa7a29cdbf
2 changed files with 9 additions and 1 deletions

View File

@ -711,6 +711,7 @@ struct ImGuiIO
// Advanced/subtle behaviors
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
//------------------------------------------------------------------
// User Functions