Skip to content

A platform for community discussion. Free, open, simple.

A11Y: Allow keyboard users to scroll help modal (#25226)

Penar Musaraj8838d27754ff
diff --git a/app/assets/javascripts/discourse/app/components/modal/keyboard-shortcuts-help.hbs b/app/assets/javascripts/discourse/app/components/modal/keyboard-shortcuts-help.hbs
index d63876d66d1..754da3d731e 100644
--- a/app/assets/javascripts/discourse/app/components/modal/keyboard-shortcuts-help.hbs
+++ b/app/assets/javascripts/discourse/app/components/modal/keyboard-shortcuts-help.hbs
@@ -6,6 +6,8 @@
<:body>
<div id="keyboard-shortcuts-help">
<div class="keyboard-shortcuts-help__container">
+ <span tabindex="0"></span>
+ {{! A11Y, allows keyboard users to scroll modal body }}
{{#each-in this.shortcuts as |category shortcutCategory|}}
<section
class="shortcut-category span-{{shortcutCategory.count}}