Skip to content

Commit

Permalink
fix: avoid hidden buttons on toolbar shortcut binding
Browse files Browse the repository at this point in the history
  • Loading branch information
paodb committed Feb 6, 2023
1 parent ef81906 commit 1a3e53b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vcf-enhanced-rich-text-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1942,7 +1942,7 @@ Inline.order.push(PlaceholderBlot.blotName, ReadOnlyBlot.blotName, LinePartBlot.

const focusToolbar = () => {
this._markToolbarFocused();
this._toolbar.querySelector('button:not([tabindex])').focus();
this._toolbar.querySelector('button:not([style*="display: none"]):not([style*="display:none"])').focus();
};

const bindings = keyboard.bindings[key] || [];
Expand Down

0 comments on commit 1a3e53b

Please sign in to comment.