--- url: "https://webaim.org/discussion/mail_message?id=50840" titulek: "WebAIM: E-mail List Archives" h1: "E-mail List Archives" popis: "" jazyk: "en" kanonicka: "" drobecky: ["You are here:", "Home", "Community", "E-mail List Archives"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-15 14:46:35" znaku: 3079 slov: 434 kodovani: "utf-8" sha256: "65986d85bdf6fee5dfcf21386a8e3243230ce473764e2fa7fd34cf92a39f0f8a" --- # E-mail List Archives You are here: [Home](/) > [Community](/community/) > [E-mail List Archives](/discussion/archives) > View Message **From:** Mark Magennis **Date:** Apr 28, 2025 1:06AM - **Next message:** [Nicholas Bromley: "Re: weird focus behavior"](mail_message?id=50841) - **Previous message:** [Birkir R. Gunnarsson: "Re: Clarification on Error suggestion and Error identification"](mail_message?id=50839) - **Next message in Thread:** [Nicholas Bromley: "Re: weird focus behavior"](mail_message?id=50841) - **Previous message in Thread:** [Steve Green: "Re: weird focus behavior"](mail_message?id=50835) - [View all messages in this Thread](mail_thread?thread=11219) --- Mike, Whenever I come across something happening after a screen reader interaction with a control that doesn't happen without the screen reader running, I always check what happens using the mouse. Screen readers sometimes fire mouse and pointer events (mouseUp MouseDown, pointerUp, pointerDown, click) when you press the Enter or Space key to activate a control. In your example, the developers may have added tried to fix the keyboard focus behavior by moving focus to the dialog opener button when the Space and Enter keys are used to close the dialog . But they may not be catching the click events that the mouse (and possibly the screen reader) is generating. Worth looking at. Mark From: WebAIM-Forum on behalf of Mike Warner via WebAIM-Forum Sent: Friday, April 25, 2025 19:03 To: WebAIM Discussion List Cc: Mike Warner Subject: [EXTERNAL] [WebAIM] weird focus behavior Well, this is interesting. As I'm testing a website using a keyboard without a screen reader, closing a dialog by hitting escape or tabbing to and activating a close button, the focus returns to the button that opened the dialog. When using JAWS and NVDA, the focus gets lost and goes to the body tag. When I have a live expression in the developer console to see the active element (document.activeElement), I can see clearly that the active element is the body after closing the dialog. That said, after closing the dialog, both screen readers announce the dialog opener button and if I do nothing else, hitting enter right after closing the dialog will open the dialog again. NVDA's focus indicator also shows that the body tag has the focus. Hitting the tab key after closing the dialog with NVDA or JAWS brings me to the skip menu, which is the first focusable element on the page. Has anyone else encountered this? Thanks, Mike Warner Director of IT Services MindEdge Learning --- - **Next message:** [Nicholas Bromley: "Re: weird focus behavior"](mail_message?id=50841) - **Previous message:** [Birkir R. Gunnarsson: "Re: Clarification on Error suggestion and Error identification"](mail_message?id=50839) - **Next message in Thread:** [Nicholas Bromley: "Re: weird focus behavior"](mail_message?id=50841) - **Previous message in Thread:** [Steve Green: "Re: weird focus behavior"](mail_message?id=50835) - [View all messages in this Thread](mail_thread?thread=11219&id=50840#50840)