@cuemath/leap 2.9.0-aa6 → 2.9.1-aa0

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.
@@ -18010,7 +18010,7 @@ Polypad API v4.5.4, (c) Mathigon
18010
18010
  let n;
18011
18011
 
18012
18012
  if (
18013
- (i != null && i()) ||
18013
+ (i != null && i() && !document.getElementById('canvasContainer')) ||
18014
18014
  !this.selection.tiles.size ||
18015
18015
  this.options.noCopyPaste ||
18016
18016
  O.formIsActive
@@ -18026,7 +18026,16 @@ Polypad API v4.5.4, (c) Mathigon
18026
18026
  H(this, null, function* () {
18027
18027
  let a;
18028
18028
 
18029
- if ((i != null && i()) || this.options.noCopyPaste || O.formIsActive) return;
18029
+ if ((i != null && i()) || this.options.noCopyPaste || O.formIsActive) {
18030
+ if (document.getElementById('canvasContainer')) {
18031
+ document
18032
+ .getElementById('canvasContainer')
18033
+ ?.shadowRoot?.querySelector('.canvas')
18034
+ ?.focus();
18035
+ } else {
18036
+ return;
18037
+ }
18038
+ }
18030
18039
 
18031
18040
  const o = jh(r.clipboardData);
18032
18041
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuemath/leap",
3
- "version": "2.9.0-aa6",
3
+ "version": "2.9.1-aa0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"