fix: #122 ctrl enter would add newline
This commit is contained in:
parent
204941c1e4
commit
81c20e6792
1 changed files with 2 additions and 2 deletions
|
|
@ -87,8 +87,8 @@ function App() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
window.addEventListener('keydown', handleKeyPress);
|
window.addEventListener('keydown', handleKeyPress, true);
|
||||||
return () => window.removeEventListener('keydown', handleKeyPress);
|
return () => window.removeEventListener('keydown', handleKeyPress, true);
|
||||||
}, [pattern, code, activateCode, cycle]);
|
}, [pattern, code, activateCode, cycle]);
|
||||||
|
|
||||||
useHighlighting({ view, pattern, active: cycle.started && !activeCode?.includes('strudel disable-highlighting') });
|
useHighlighting({ view, pattern, active: cycle.started && !activeCode?.includes('strudel disable-highlighting') });
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue