# 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:** [Agosto 30, 2017, 4:02am 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:** 1

<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:** [Agosto 30, 2017, 4:02am UTC](https://meta.discourse.org/t/application-level-keyboard-shortcuts-should-be-disabled-when-a-modal-is-open/69024/1 "2017-08-30T04:02:11Z")

</div>

When a modal dialog is opened – like the “Invite to topic” dialog – global keyboard shortcuts still fire (unless the input is captured by an input on the modal). This means that you can, for example, inadvertently start composing topics, or perform actions on posts (like “like”, “bookmark”, etc.)

I run into this not infrequently as I keep expecting to be able to invite multiple people to a topic at once – and once I’ve chosen the first person, I start typing the next person’s name, and all sorts of stuff starts happening in the background. 🙂

---

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