@tscircuit/runframe 0.0.245 → 0.0.247

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.
@@ -988,7 +988,7 @@ var RenderLogViewer = ({
988
988
  };
989
989
 
990
990
  // package.json
991
- var version = "0.0.244";
991
+ var version = "0.0.246";
992
992
 
993
993
  // lib/components/CircuitJsonPreview/CircuitJsonPreview.tsx
994
994
  import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
package/dist/preview.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CircuitJsonPreview
3
- } from "./chunk-2CFC43UC.js";
3
+ } from "./chunk-5KE2NJVP.js";
4
4
  export {
5
5
  CircuitJsonPreview
6
6
  };
package/dist/runner.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  DropdownMenuTrigger,
12
12
  buttonVariants,
13
13
  cn
14
- } from "./chunk-2CFC43UC.js";
14
+ } from "./chunk-5KE2NJVP.js";
15
15
 
16
16
  // lib/components/RunFrame/RunFrame.tsx
17
17
  import { createCircuitWebWorker } from "@tscircuit/eval";
@@ -278,6 +278,15 @@ var RunFrame = (props) => {
278
278
  const lastRunCountTriggerRef = useRef2(0);
279
279
  const runMutex = useMutex();
280
280
  const [isRunning, setIsRunning] = useState(false);
281
+ useEffect(() => {
282
+ const handleKeyDown = (e) => {
283
+ if ((e.ctrlKey || e.metaKey) && e.key === "Enter" && !isRunning) {
284
+ incRunCountTrigger(1);
285
+ }
286
+ };
287
+ window.addEventListener("keydown", handleKeyDown);
288
+ return () => window.removeEventListener("keydown", handleKeyDown);
289
+ }, [isRunning]);
281
290
  const [renderLog, setRenderLog] = useState(null);
282
291
  const [autoroutingLog, setAutoroutingLog] = useState({});
283
292
  const [activeTab, setActiveTab] = useState(