handle the trapFocus option, which defaults to true