Overlays: Fixed keyboard handling for second time panel is opened

Had to remove focus test from focus.js since Firefox needs the focus delay to be able to shift event focus to overlays since otherwise it tries unsuccessfully to shift event focus before the overlay is revealed (which causes event focus to fall back to the body element).