diff --git a/code/components/nui-core/src/CefInput.cpp b/code/components/nui-core/src/CefInput.cpp index b18f016167..2230b7b5f8 100644 --- a/code/components/nui-core/src/CefInput.cpp +++ b/code/components/nui-core/src/CefInput.cpp @@ -353,7 +353,7 @@ static HookFunction initFunction([] () { g_nuiGi->QueryMayLockCursor.Connect([](int& argPtr) { - if (HasFocus() && !g_keepInput) + if (HasFocus() && g_hasCursor && !g_keepInput) { argPtr = 0; }