fix: update the newline key in codemirror (#4876)

Co-authored-by: Jai A P <jai.jap.318@gmail.com>
This commit is contained in:
Nivedin 2025-03-12 15:51:23 +05:30 committed by GitHub
parent 6bd2574cba
commit acd190f3e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -402,7 +402,8 @@ export function useCodemirror(
Prec.highest(
keymap.of([
{
key: "Cmd-Enter" /* macOS */ || "Ctrl-Enter" /* Windows */,
key: "Ctrl-Enter" /* Windows */,
mac: "Cmd-Enter" /* Mac */,
preventDefault: true,
run: () => true,
},