diff --git a/src/vcf-enhanced-rich-text-editor.js b/src/vcf-enhanced-rich-text-editor.js index d322a56..9ba58e6 100644 --- a/src/vcf-enhanced-rich-text-editor.js +++ b/src/vcf-enhanced-rich-text-editor.js @@ -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] || [];