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

**URL:** <https://meta.discourse.org/t/application-level-keyboard-shortcuts-should-be-disabled-when-a-modal-is-open/69024>\
**Category:** Bug\
**Tags:** keyboard-shortcuts\
**Created:** [30. August 2017 um 04:02 UTC](https://meta.discourse.org/t/application-level-keyboard-shortcuts-should-be-disabled-when-a-modal-is-open/69024 "2017-08-30T04:02:11Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![barryvan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barryvan/32/82635_2.png) [@barryvan](https://meta.discourse.org/u/barryvan)\
**Post date:** [18. Januar 2018 um 01:39 UTC](https://meta.discourse.org/t/application-level-keyboard-shortcuts-should-be-disabled-when-a-modal-is-open/69024/3 "2018-01-18T01:39:36Z")

</div>

Yep. 🙂 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. 🙂

---

_[View the full topic](https://meta.discourse.org/t/application-level-keyboard-shortcuts-should-be-disabled-when-a-modal-is-open/69024)._
