Application-level keyboard shortcuts should be disabled when a modal is open

Yep. :slight_smile: Steps to reproduce:

  • Click the “flag” or “invite” button below this topic.
  • Click somewhere on the dialog that isn’t part of the form. (On “invite”, this blurs the input; on “flag”, it’s not as clear, but clicking outside the radio buttons I think blurs the entire form.)
  • Type gl.
  • You’ll be navigated to the “Latest” page in the background, and then the modal will close.

This can be problematic because the “invite” modal looks as though the input accepts multiple people – so if I start typing codingh, then choose @codinghorror from the list, I might start inviting someone else. And if their name starts with an accepting key combination (like Gloria or Glenn or …), I get bumped away.

I’m not suggesting that it should be possible to invite multiple people at once (although perhaps I should suggest that!), but it’d be good to fix this bug so at least things don’t seem to misbehave. :slight_smile:

2 Likes