fix: #122 was still not fixed for async patterns

This commit is contained in:
Felix Roos 2022-06-02 00:58:20 +02:00
parent 6306cc9c34
commit 5cd80b5817

View File

@ -89,8 +89,8 @@ function App() {
const handleKeyPress = async (e) => {
if (e.ctrlKey || e.altKey) {
if (e.code === 'Enter') {
await activateCode();
e.preventDefault();
await activateCode();
} else if (e.code === 'Period') {
cycle.stop();
e.preventDefault();