forked from tinygrad/tinygrad
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).
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user