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.
@@ -97334,7 +97334,7 @@ float metalnessFactor = metalness;
97334
97334
  }
97335
97335
  }
97336
97336
 
97337
- const version = "5.0.3";
97337
+ const version = "5.0.4";
97338
97338
 
97339
97339
  /**
97340
97340
  * `PickedComponent` over a GPU id-pick result. Drives the shader
@@ -112452,7 +112452,14 @@ void mainImage(const in vec4 inputColor, const in vec2 uv, const in float depth,
112452
112452
  KeyMapper.set(modifiers);
112453
112453
  this.display.updateHelp(before, modifiers);
112454
112454
  }
112455
- KeyMapper.setActionShortcuts(actions);
112455
+ if (Object.keys(actions).length > 0) {
112456
+ // Merge over the existing table: a partial config (e.g. modifiers only)
112457
+ // must not wipe the action shortcuts
112458
+ KeyMapper.setActionShortcuts({
112459
+ ...KeyMapper.getActionShortcuts(),
112460
+ ...actions,
112461
+ });
112462
+ }
112456
112463
  this.display.updateTooltips();
112457
112464
  }
112458
112465
  // ---------------------------------------------------------------------------