title: I'm trying to close several opened layer popups in sequence with esc. What should I do?
body: <p>I'm trying to close several opened layer popups in sequence with esc. What should I do?</p>
  <p>The currently applied source is as follows. When you press esc on the keyboard, it is clicked on the close button of the layer popup to close it.</p>
  <pre><code>$(document).on('keyup', function(e) {
    if (e.key == &quot;Escape&quot;) $('.window .close').click();
  });
  </code></pre>