Skip to content

HasAnyActiveFocus

Returns true if any PrismaView currently has active input focus. This is a global check useful for determining if any UI element is currently receiving input across all views.

bool HasAnyActiveFocus();

None.

  • Type: bool
  • Returns: true if any view has active focus; otherwise, false
// Check if any UI has focus
if (PrismaUI->HasAnyActiveFocus()) {
SKSE::log::info("Some UI element has active focus");
} else {
SKSE::log::info("No UI elements have focus");
}
  • Global State Check: Use before performing operations that should only occur when no UI is focused
  • Performance: Lightweight operation suitable for frequent checks
  • Multi-Plugin: Essential for cross-plugin input coordination