From c066baea65fea1a8f1b583e53fac118ddfd058af Mon Sep 17 00:00:00 2001 From: qazal <77887910+Qazalin@users.noreply.github.com> Date: Thu, 12 Jun 2025 16:00:14 +0300 Subject: [PATCH] viz: enter key only expands steps (#10792) It shouldn't be changing any step or context state. Those are handled explicitly by the arrow keys (or clicking). --- tinygrad/viz/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinygrad/viz/js/index.js b/tinygrad/viz/js/index.js index 09208bd246..0da56b1bb4 100644 --- a/tinygrad/viz/js/index.js +++ b/tinygrad/viz/js/index.js @@ -456,7 +456,7 @@ document.addEventListener("keydown", async function(event) { if (currentCtx === -1) { return setState({ currentCtx:0, expandSteps:true }); } - return setState({ currentStep:0, currentRewrite:0, expandSteps:!expandSteps }); + return setState({ expandSteps:!expandSteps }); } // left and right go through rewrites in a single UOp if (event.key == "ArrowLeft") {