Issue #3443868 by Linh Le, YevKo: Add documentation to arrow-navigation.js
parent
62f43ebcaa
commit
395e146170
|
@ -1,4 +1,17 @@
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Keyboard navigation component.
|
||||||
|
*/
|
||||||
|
|
||||||
((Drupal, once, { focusable }) => {
|
((Drupal, once, { focusable }) => {
|
||||||
|
/**
|
||||||
|
* Attaches the keyboard navigation functionality.
|
||||||
|
*
|
||||||
|
* @type {Drupal~behavior}
|
||||||
|
*
|
||||||
|
* @prop {Drupal~behaviorAttach} attach
|
||||||
|
* Attaches the behavior to the `.admin-toolbar` element.
|
||||||
|
*/
|
||||||
Drupal.behaviors.keyboardNavigation = {
|
Drupal.behaviors.keyboardNavigation = {
|
||||||
attach: (context) => {
|
attach: (context) => {
|
||||||
once('keyboard-processed', '.admin-toolbar', context).forEach(
|
once('keyboard-processed', '.admin-toolbar', context).forEach(
|
||||||
|
|
Loading…
Reference in New Issue