Interactive elements on the website canceled when ESC key is pressed, so that keyboard navigation is improved
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3366447. -->
Reported by: [branimir.juranic](https://www.drupal.org/user/3331091)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>To provide a more complete UX for users who are navigating the website using a keyboard we want to ensure that when the ESC key is pressed while interactive element are in focus, it should lose focus and cancel any visual highlighting.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>- Add code to the mobile menu to be dismissed using the ESC key<br>
- Add code to current implementation of the Search bar, that will dismiss it using the ESC key<br>
- Add code to dismiss the Dropdown Material Base component (used in primary navigation) using the ESC key</p>
issue