in gr-editor/codemirror-element.js [78:91]
_addEventListeners() {
this._nativeMirror.on('change', e => {
this.dispatchEvent(
new CustomEvent('content-change', {detail: {value: e.getValue()}})
);
});
this._nativeMirror.getInputField().addEventListener('keydown', e => {
// Exempt the ctrl/command+s key from preventing events from propagating
// through the app. This is because we use it to save changes.
if (!e.metaKey && !e.ctrlKey) {
e.stopPropagation();
}
});
}