WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Keyboard trap for non-modal dialogs and popups:

for

From: Beranek, Nicholas
Date: Sep 22, 2016 11:32AM


Let's separate the two components from the subject: 1) non-modal dialogs; and 2) popups. Non-modal dialogs should not trap focus. Popups, which I'll call 'modal dialogs-, should. Remember that we're trying to emulate the default behavior in the operating system. Dialog windows do trap focus, as do alerts and confirm boxes. The window.open method which spawns a classical 'popup- traps focus until you navigate away from the window.

We want to create as seamless an experience from OS to browser, so it would make sense to do this for modal dialogs.

--
Nick Beranek
Digital Accessibility Team

On 9/22/16, 1:17 PM, "WebAIM-Forum on behalf of JP Jamous" < <EMAIL REMOVED> on behalf of <EMAIL REMOVED> > wrote:

That was exactly my thought Don. I wondered if he had a special case though.