# Is it possible to hide the ‘keyboard shortcuts’ button?

**URL:** https://meta.discourse.org/t/is-it-possible-to-hide-the-keyboard-shortcuts-button/371778
**Category:** Support
**Tags:** keyboard-shortcuts
**Created:** [June 26, 2025, 7:11am UTC](https://meta.discourse.org/t/is-it-possible-to-hide-the-keyboard-shortcuts-button/371778 "2025-06-26T07:11:43Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Jerome-cockpitLAB](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jerome-cockpitlab/32/492992_2.png) [@Jerome-cockpitLAB](https://meta.discourse.org/u/Jerome-cockpitLAB)
#### Post date: [June 26, 2025, 7:11am UTC](https://meta.discourse.org/t/is-it-possible-to-hide-the-keyboard-shortcuts-button/371778/1 "2025-06-26T07:11:43Z")

</div>

This is not the subject of this discussion, but do you know how to disable keyboard shortcuts? Thank you in advance.

![Capture d’écran 2025-06-26 à 09.09.43](https://global.discourse-cdn.com/meta/original/4X/c/d/0/cd016d82827155b3e9a9a6b20f819b2b101155cd.png)

 ![Capture d’écran 2025-06-26 à 09.09.51](https://global.discourse-cdn.com/meta/original/4X/d/2/5/d25c9b3976eb1b19f11970ecf5eee8726827cf02.png)

---

<div class="post-metadata">

### Author: ![MihirR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mihirr/32/475158_2.png) [@MihirR](https://meta.discourse.org/u/MihirR)
#### Post date: [June 26, 2025, 8:18am UTC](https://meta.discourse.org/t/is-it-possible-to-hide-the-keyboard-shortcuts-button/371778/2 "2025-06-26T08:18:52Z")

</div>

There is no such setting in the discourse admin settings but it’s possible with some tweaks using theme component or plug-in.

If you are disabling it maybe for this issue then have a look. [Shortcuts messing with canvas focus](https://meta.discourse.org/t/shortcuts-messing-with-canvas-focus/195742)

Or you may try this, not sure on this.

1. Log in as an admin to your Discourse site.
2. Navigate to Admin \> Customize \> Themes.
3. Click on the ‘Edit’ button of the theme you’d like to modify or create a new theme.
4. Go to the ‘Javascript’ section.
5. Paste the following code:

> document.addEventListener(‘keydown’, function(e) { // List of key codes or conditions to disable specific shortcuts // For example, disable ‘n’ key for new topic if (e.key === ‘n’) { e.stopImmediatePropagation(); } });

Save the changes and activate the theme.

This might help, but it’s not tested.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [June 26, 2025, 9:20am UTC](https://meta.discourse.org/t/is-it-possible-to-hide-the-keyboard-shortcuts-button/371778/3 "2025-06-26T09:20:05Z")

</div>

May I ask why you want to disable it? Just curious 🙂.

---

<div class="post-metadata">

### Author: ![Jerome-cockpitLAB](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jerome-cockpitlab/32/492992_2.png) [@Jerome-cockpitLAB](https://meta.discourse.org/u/Jerome-cockpitLAB)
#### Post date: [June 26, 2025, 9:27am UTC](https://meta.discourse.org/t/is-it-possible-to-hide-the-keyboard-shortcuts-button/371778/4 "2025-06-26T09:27:19Z")

</div>

Simply because it’s useless.  
No one uses it.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 26, 2025, 9:29am UTC](https://meta.discourse.org/t/is-it-possible-to-hide-the-keyboard-shortcuts-button/371778/5 "2025-06-26T09:29:09Z")

</div>

Ah, so do you want to just hide the button in the sidebar or genuinely disable any keyboard shortcuts?

---

<div class="post-metadata">

### Author: ![Jerome-cockpitLAB](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jerome-cockpitlab/32/492992_2.png) [@Jerome-cockpitLAB](https://meta.discourse.org/u/Jerome-cockpitLAB)
#### Post date: [June 26, 2025, 9:30am UTC](https://meta.discourse.org/t/is-it-possible-to-hide-the-keyboard-shortcuts-button/371778/6 "2025-06-26T09:30:01Z")

</div>

Just hide the button in the sidebar effectively.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [June 26, 2025, 9:42am UTC](https://meta.discourse.org/t/is-it-possible-to-hide-the-keyboard-shortcuts-button/371778/7 "2025-06-26T09:42:54Z")

</div>

In that case, this should work:

```css
.sidebar-footer-actions-keyboard-shortcuts {
  display: none;
}

```

---

<div class="post-metadata">

### Author: ![Jerome-cockpitLAB](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jerome-cockpitlab/32/492992_2.png) [@Jerome-cockpitLAB](https://meta.discourse.org/u/Jerome-cockpitLAB)
#### Post date: [June 26, 2025, 10:00am UTC](https://meta.discourse.org/t/is-it-possible-to-hide-the-keyboard-shortcuts-button/371778/8 "2025-06-26T10:00:04Z")

</div>

> [@NateDhaliwal](#):
>
> ```plaintext
> .sidebar-footer-actions-keyboard-shortcuts {
> display: none;
> }
> 
> ```

It works. Thank you so much Nate.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [July 26, 2025, 10:00am UTC](https://meta.discourse.org/t/is-it-possible-to-hide-the-keyboard-shortcuts-button/371778/9 "2025-07-26T10:00:11Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
