From 03a6b074135eef557b71ef489f994c4dbbb9df46 Mon Sep 17 00:00:00 2001 From: "Michael G." Date: Sun, 26 Apr 2026 02:23:15 +0000 Subject: [PATCH] Fix code style --- apps/openmw/mwgui/windowmanagerimp.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwgui/windowmanagerimp.cpp b/apps/openmw/mwgui/windowmanagerimp.cpp index 98810173d3..e3f95bc6f1 100644 --- a/apps/openmw/mwgui/windowmanagerimp.cpp +++ b/apps/openmw/mwgui/windowmanagerimp.cpp @@ -1879,10 +1879,13 @@ namespace MWGui bool isEditBox = widget && widget->castType(false); LuaUi::WidgetExtension* luaWidget = dynamic_cast(widget); bool capturesInput = luaWidget ? luaWidget->isTextInput() : isEditBox; - if (widget && capturesInput) { + if (widget && capturesInput) + { mTextInputActive = true; SDL_StartTextInput(); - } else { + } + else + { mTextInputActive = false; SDL_StopTextInput(); }