@vscode/markdown-editor 0.0.2-115 → 0.0.2-117

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4336,6 +4336,7 @@ class Gc extends H {
4336
4336
  if (!(this._copying || this._closed)) {
4337
4337
  this._copying = !0, this._resetFeedback(), this._button.setAttribute("aria-busy", "true");
4338
4338
  try {
4339
+ this._button.ownerDocument.hasFocus() || (this._button.closest(".md-editor[tabindex]") ?? this._button).focus({ preventScroll: !0 });
4339
4340
  const e = Uc(this._block);
4340
4341
  if (this._options?.writeClipboardText ? await this._options.writeClipboardText(e) : await this._button.ownerDocument.defaultView.navigator.clipboard.writeText(e), this._closed)
4341
4342
  return;