Added trapFocus setting to allow disabling of focus trapping