FIX: Allow dismissing Discard Drafts modal via Esc key (PR #12532)

A few small adjustments:

  • pressing ESC while on the Discard Drafts modal will now dismiss and return the user to the composer
  • composer keyboard shortcuts will be paused while a modal is visible
  • modal header classes are reset correctly (to avoid the property from sticking if switching between modals)


Happy to see that go!