fix: #122 ctrl enter would add newline

This commit is contained in:
Felix Roos 2022-06-01 23:53:30 +02:00
parent 204941c1e4
commit 81c20e6792

View File

@ -87,8 +87,8 @@ function App() {
}
}
};
window.addEventListener('keydown', handleKeyPress);
return () => window.removeEventListener('keydown', handleKeyPress);
window.addEventListener('keydown', handleKeyPress, true);
return () => window.removeEventListener('keydown', handleKeyPress, true);
}, [pattern, code, activateCode, cycle]);
useHighlighting({ view, pattern, active: cycle.started && !activeCode?.includes('strudel disable-highlighting') });