ensureFocusEnd method
void
ensureFocusEnd()
Ensures that focus is deactivated if it is currently active. This method guarantees that focus will be properly ended in situations where it remains active.
Implementation
void ensureFocusEnd() {
if (isFocusActive) focusEnd();
}