three-cad-viewer 5.0.3 → 5.0.4

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.
@@ -97328,7 +97328,7 @@ class Tools {
97328
97328
  }
97329
97329
  }
97330
97330
 
97331
- const version = "5.0.3";
97331
+ const version = "5.0.4";
97332
97332
 
97333
97333
  /**
97334
97334
  * `PickedComponent` over a GPU id-pick result. Drives the shader
@@ -112446,7 +112446,14 @@ class Viewer {
112446
112446
  KeyMapper.set(modifiers);
112447
112447
  this.display.updateHelp(before, modifiers);
112448
112448
  }
112449
- KeyMapper.setActionShortcuts(actions);
112449
+ if (Object.keys(actions).length > 0) {
112450
+ // Merge over the existing table: a partial config (e.g. modifiers only)
112451
+ // must not wipe the action shortcuts
112452
+ KeyMapper.setActionShortcuts({
112453
+ ...KeyMapper.getActionShortcuts(),
112454
+ ...actions,
112455
+ });
112456
+ }
112450
112457
  this.display.updateTooltips();
112451
112458
  }
112452
112459
  // ---------------------------------------------------------------------------