fix: main repl option-dot on mac

This commit is contained in:
Felix Roos 2023-06-11 13:55:11 +02:00
parent 7850fb727e
commit 3b4e44a9fd

View File

@ -157,7 +157,7 @@ export function Repl({ embedded = false }) {
e.preventDefault(); e.preventDefault();
flash(view); flash(view);
await activateCode(); await activateCode();
} else if (e.key === '.' || e.keyCode === 'Period') { } else if (e.key === '.' || e.code === 'Period') {
stop(); stop();
e.preventDefault(); e.preventDefault();
} }