Menus should close on ESC
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3538246. -->
Reported by: [mherchel](https://www.drupal.org/user/118428)
Related to !185
>>>
<p>This is a followup from <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/bluecheese/-/work_items/3528253" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/bluecheese/-/work_items/3528253</a></span></p>
<p>It's a normal pattern for users to hit ESC on their keyboard to close menus. We should implement this. </p>
<h3>Testing instructions</h3>
<p>Desktop:</p>
<ol>
<li>Open a submenu. Hit ESC on your keyboard. The menu should collapse.</li>
<li>Do the same for search</li>
<li>Do the same for the user menu</li>
</ol>
<p>Mobile</p>
<ol>
<li>Open the header mobile menu. Hit ESC, it should close.</li>
<li>Open the header mobile menu. open a submenu. Hit ESC. The submenu should close.</li>
<li>Click ESC again. the header should close. </li>
</ol>
issue