Hi, I’m using a fairly basic installation of code mirror:
const sqlEditor = CodeMirror.fromTextArea(sqlTextArea, { mode: "sql", theme: "base16-light", lineWrapping: true, autofocus: true, viewportMargin: Infinity });
However, on my windows machine, with a Chrome browser, I can’t use the standard keyboard shortcuts for the text, such as ctrl-a
to select all, even ctrl-c
and ctrl-v
to copy and paste. ctrl-a
moves the cursor to the beginning of the line (and ctrl-v
to the end), which tells me that perhaps emacs binding are the default?
I have played around with other codemirror on other sites, such as https://codemirror.net/demo/theme.html and ctrl-a
does ‘select all,’ like I expect it to.
What am I doing wrong?