make sidebar headers toggable via keyboard
This commit is contained in:
parent
23ea6ca0ed
commit
bed1717f37
1 changed files with 2 additions and 1 deletions
|
@ -77,6 +77,7 @@ jQuery(function () {
|
|||
const $toggler = jQuery('<h6>')
|
||||
.attr('role', 'heading')
|
||||
.attr('aria-level', '2')
|
||||
.attr('tabindex', '0')
|
||||
.text(text)
|
||||
.wrapInner('<span class="lbl">')
|
||||
.prepend($icon)
|
||||
|
@ -102,7 +103,7 @@ jQuery(function () {
|
|||
* Initialize the open/close toggling of menu entries
|
||||
*/
|
||||
const initMenuHandling = function () {
|
||||
$nav.on('click', 'h6', function () {
|
||||
$nav.on('click keypress', 'h6', function () {
|
||||
toggleNav(jQuery(this));
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue