From 3b4e44a9fd10b439f58d54ed98ed3da780f8fc02 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Sun, 11 Jun 2023 13:55:11 +0200 Subject: [PATCH] fix: main repl option-dot on mac --- website/src/repl/Repl.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/repl/Repl.jsx b/website/src/repl/Repl.jsx index ce480701..c30e7663 100644 --- a/website/src/repl/Repl.jsx +++ b/website/src/repl/Repl.jsx @@ -157,7 +157,7 @@ export function Repl({ embedded = false }) { e.preventDefault(); flash(view); await activateCode(); - } else if (e.key === '.' || e.keyCode === 'Period') { + } else if (e.key === '.' || e.code === 'Period') { stop(); e.preventDefault(); }