To be consistent with your modification, I'd have also moved this `rawWindow3.focus()` after the call to `continueAfterFocus`.