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();
flash(view);
await activateCode();
} else if (e.key === '.' || e.keyCode === 'Period') {
} else if (e.key === '.' || e.code === 'Period') {
stop();
e.preventDefault();
}