pr #4: mw: only grab modal if we have focus