From a424d6f805f474e5faaf85eaae9e7a061c2063b7 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 24 Jul 2016 14:08:50 +0200 Subject: [PATCH] Navigation: Fixed missing initialization (had no side-effect, would be set in Begin) (#323) --- imgui_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_internal.h b/imgui_internal.h index 59381135..7f6de494 100644 --- a/imgui_internal.h +++ b/imgui_internal.h @@ -640,7 +640,7 @@ struct IMGUI_API ImGuiDrawContext LayoutType = ImGuiLayoutType_Vertical; ItemWidth = 0.0f; ButtonRepeat = false; - AllowKeyboardFocus = true; + AllowKeyboardFocus = AllowNavDefaultFocus = true; TextWrapPos = -1.0f; ColorEditMode = ImGuiColorEditMode_RGB; memset(StackSizesBackup, 0, sizeof(StackSizesBackup));