Keyboard focus is unexpectedly removed or redirected

Link to Keyboard focus is unexpectedly removed or redirected copied to clipboard



Focusing on an element MUST NOT automatically trigger a change of context, unless the user has been adequately advised ahead of time.


When a major change of context occurs - such as a opening a new window, moving focus to another element, a submitting a form - while a keyboard user is tabbing through a page, they may become quite disoriented or, much worse, they may be completely blocked from using the content. Any component that is able to trigger an event when it receives focus must not change the user's context. This will ensure that keyboard users can successfully navigate their way through a page in a predictable manner.

How to Fix

Fix this issue by ensuring that focus is not moved to another component or removed altogether when a component receives keyboard focus.