@acorex/platform 21.0.0-next.73 → 21.0.0-next.74

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.
@@ -1624,6 +1624,7 @@ class AXPLayoutDetailsViewComponent extends AXPPageLayoutBaseComponent {
1624
1624
  ngOnDestroy() {
1625
1625
  this.unsavedChangesPopstate.unregisterSource('axp-layout-details-view');
1626
1626
  this.onSelectionChangeSubscription?.unsubscribe();
1627
+ ++this.keyboardShortcutRegistrationGeneration;
1627
1628
  this.destroyed$.next();
1628
1629
  this.destroyed$.complete();
1629
1630
  }
@@ -1960,7 +1961,7 @@ class AXPLayoutDetailsViewComponent extends AXPPageLayoutBaseComponent {
1960
1961
  //#region ---- Keyboard Shortcuts ----
1961
1962
  async refreshKeyboardShortcutRegistrations(generation) {
1962
1963
  const entries = await this.collectActionShortcutEntries();
1963
- if (generation !== this.keyboardShortcutRegistrationGeneration) {
1964
+ if (generation !== this.keyboardShortcutRegistrationGeneration || this.destroyed$.closed) {
1964
1965
  return;
1965
1966
  }
1966
1967
  this.actionShortcutEntries.set(entries);