Closed chenraotg closed 1 year ago
I tried to import keymap from @codemirror/view
import { keymap } from '@codemirror/view'; const keymapExtension = keymap.of([ { win: 'Ctrl-Enter', mac: 'Cmd-Enter', run: () => { console.log('Ctrl-Enter'); return true; }, }, ]); <ReactCodeMirror extensions={[keymapExtension]}
but it didn't work...
Misdescribe the issue, I just closed it.
I tried to import keymap from @codemirror/view
but it didn't work...