@tscircuit/pcb-viewer 1.11.315 → 1.11.316

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.
package/dist/index.js CHANGED
@@ -10574,6 +10574,10 @@ var DimensionOverlay = ({
10574
10574
  );
10575
10575
  useEffect7(() => {
10576
10576
  const down = (e) => {
10577
+ const target = e.target;
10578
+ if (target.tagName === "INPUT" || target.tagName === "TEXTAREA" || target.isContentEditable) {
10579
+ return;
10580
+ }
10577
10581
  const containerHasFocus = containerRef.current?.contains(document.activeElement) || document.activeElement === containerRef.current;
10578
10582
  if (!isMouseOverContainer && !containerHasFocus) return;
10579
10583
  if (e.key === "d") {
@@ -13565,7 +13569,7 @@ import { css as css3 } from "@emotion/css";
13565
13569
  // package.json
13566
13570
  var package_default = {
13567
13571
  name: "@tscircuit/pcb-viewer",
13568
- version: "1.11.314",
13572
+ version: "1.11.315",
13569
13573
  main: "dist/index.js",
13570
13574
  type: "module",
13571
13575
  repository: "tscircuit/pcb-viewer",
@@ -13646,6 +13650,10 @@ var useHotKey = (key, onUse, containerRef) => {
13646
13650
  useEffect13(() => {
13647
13651
  if (!key) return;
13648
13652
  const handleKeyDown = (event) => {
13653
+ const target = event.target;
13654
+ if (target.tagName === "INPUT" || target.tagName === "TEXTAREA" || target.isContentEditable) {
13655
+ return;
13656
+ }
13649
13657
  const keyParts = key.split("+");
13650
13658
  const ctrlRequired = keyParts.includes("ctrl");
13651
13659
  const shiftRequired = keyParts.includes("shift");