diff --git a/patches/3286466-admin-toolbar-keyboard-navigation-fix.patch b/patches/3286466-54-admin-toolbar-keyboard-navigation-fix.patch similarity index 93% rename from patches/3286466-admin-toolbar-keyboard-navigation-fix.patch rename to patches/3286466-54-admin-toolbar-keyboard-navigation-fix.patch index 320d45b913..f7d92a5397 100644 --- a/patches/3286466-admin-toolbar-keyboard-navigation-fix.patch +++ b/patches/3286466-54-admin-toolbar-keyboard-navigation-fix.patch @@ -484,4 +484,28 @@ index a714c6e..36cff2f 100644 if (window.matchMedia("(max-width: 767px)").matches && $('body').hasClass('toolbar-tray-open')) { $('body').removeClass('toolbar-tray-open'); $('#toolbar-item-administration').removeClass('is-active'); +diff --git a/src/Form/AdminToolbarSettingsForm.php b/src/Form/AdminToolbarSettingsForm.php +index 575f5e6..a0f0eda 100644 +--- a/src/Form/AdminToolbarSettingsForm.php ++++ b/src/Form/AdminToolbarSettingsForm.php +@@ -67,6 +67,12 @@ class AdminToolbarSettingsForm extends ConfigFormBase { + '#options' => array_combine($depth_values, $depth_values), + ]; ++ $form['remove_keyboard_accessibility'] = [ ++ '#type' => 'checkbox', ++ '#description' => $this->t('Hide top-level keyboard navigation arrows on desktop.'), ++ '#default_value' => $config->get('remove_keyboard_accessibility'), ++ ]; ++ + return parent::buildForm($form, $form_state); + } + +@@ -76,6 +82,7 @@ class AdminToolbarSettingsForm extends ConfigFormBase { + public function submitForm(array &$form, FormStateInterface $form_state) { + $this->config('admin_toolbar.settings') + ->set('menu_depth', $form_state->getValue('menu_depth')) ++ ->set('remove_keyboard_accessibility', $form_state->getValue('remove_keyboard_accessibility')) + ->save(); + parent::submitForm($form, $form_state); + $this->cacheMenu->invalidateAll();