@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.
- package/dist/{chunk-2CFC43UC.js → chunk-5KE2NJVP.js} +1 -1
- package/dist/preview.js +1 -1
- package/dist/runner.js +10 -1
- package/dist/standalone-preview.min.js +949 -943
- package/dist/standalone.min.js +960 -954
- package/package.json +2 -2
package/dist/preview.js
CHANGED
package/dist/runner.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
DropdownMenuTrigger,
|
|
12
12
|
buttonVariants,
|
|
13
13
|
cn
|
|
14
|
-
} from "./chunk-
|
|
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(
|