]> BookStack Code Mirror - bookstack/blobdiff - resources/js/services/keyboard-navigation.js
Finished off design and fixing of sort buttons
[bookstack] / resources / js / services / keyboard-navigation.js
index 0e1dcf1a756cf6ec5cd39d41c355265e6bbd7cce..0f866ceaaacd368ad317eb7e14a7b572ce96f93e 100644 (file)
@@ -86,7 +86,7 @@ export class KeyboardNavigationHandler {
      */
     #getFocusable() {
         const focusable = [];
-        const selector = '[tabindex]:not([tabindex="-1"]),[href],button:not([tabindex="-1"]),input:not([type=hidden])';
+        const selector = '[tabindex]:not([tabindex="-1"]),[href],button:not([tabindex="-1"],[disabled]),input:not([type=hidden])';
         for (const container of this.containers) {
             focusable.push(...container.querySelectorAll(selector))
         }