From c911901b5ec9f43718a1d382f4d01e1cbc8ec862 Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Wed, 3 Aug 2022 23:46:31 +0300 Subject: [PATCH] Fix ImGuiIO docs and default values (#5540) --- imgui.cpp | 2 ++ imgui.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 4cf04fa2..fd83d474 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -1164,6 +1164,8 @@ ImGuiIO::ImGuiIO() #endif ConfigInputTrickleEventQueue = true; ConfigInputTextCursorBlink = true; + ConfigInputTextEnterKeepActive = false; + ConfigDragClickToInputText = false; ConfigWindowsResizeFromEdges = true; ConfigWindowsMoveFromTitleBarOnly = false; ConfigMemoryCompactTimer = 60.0f; diff --git a/imgui.h b/imgui.h index 4bd3f88d..d09f09fb 100644 --- a/imgui.h +++ b/imgui.h @@ -1903,7 +1903,7 @@ struct ImGuiIO float MouseDoubleClickTime; // = 0.30f // Time for a double-click, in seconds. float MouseDoubleClickMaxDist; // = 6.0f // Distance threshold to stay in to validate a double-click, in pixels. float MouseDragThreshold; // = 6.0f // Distance threshold before considering we are dragging. - float KeyRepeatDelay; // = 0.250f // When holding a key/button, time before it starts repeating, in seconds (for buttons in Repeat mode, etc.). + float KeyRepeatDelay; // = 0.275f // When holding a key/button, time before it starts repeating, in seconds (for buttons in Repeat mode, etc.). float KeyRepeatRate; // = 0.050f // When holding a key/button, rate at which it repeats, in seconds. void* UserData; // = NULL // Store your own data for retrieval by callbacks.