Hi, we capture ctrl+s/cmd+s here gerrit/gr-editor-view.ts at master · GerritCodeReview/gerrit · GitHub
But that works intermittent with codemirror v6 (worked with v5). When we paste it doesn’t work immediately, instead triggers the file browser. Waiting a few seconds works. If you manually type on the keyboard it works immediately. Wondering if you know why or if this could be a bug in CodeMirror?
The cm code is plugins_codemirror-editor/codemirror-element.ts at master · GerritCodeReview/plugins_codemirror-editor · GitHub
I’ve tried to follow Capturing Ctrl-S doesn't work, opens browser's save dialog but it either prevents gerrit/gr-editor-view.ts at master · GerritCodeReview/gerrit · GitHub or doesn’t work exactly.