@firestitch/block-editor 12.4.5 → 12.4.6

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.
@@ -1042,7 +1042,7 @@
1042
1042
  configurable: true
1043
1043
  });
1044
1044
  FsBlockComponent.prototype.keydown = function (event) {
1045
- if (event.target === document.body && this.selected) {
1045
+ if (this.selected) {
1046
1046
  if (['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'].indexOf(event.key) !== -1) {
1047
1047
  this._move(event);
1048
1048
  }
@@ -1260,6 +1260,9 @@
1260
1260
  this._blockEditor.selectedBlocks$
1261
1261
  .pipe(operators.skip(1), operators.takeUntil(this._destroy$))
1262
1262
  .subscribe(function (blocks) {
1263
+ if (document.activeElement instanceof HTMLElement) {
1264
+ document.activeElement.blur();
1265
+ }
1263
1266
  _this.selected = blocks
1264
1267
  .some(function (block) { return block.guid === _this.block.guid; });
1265
1268
  _this.transformable = true;