Closing the keyboard in Safari 15 on iPhone raises the window.blur event

Closing the keyboard in Safari 15 on an iPhone triggers the window.blur event. The problem is that the application must also listen for the window.blur event to send information that the user has minimized the application and closing the keyboard causes a false positive. Is it possible to somehow separate these cases?