@scm-manager/scm-code-editor-plugin 1.2.1-20230911-115115 → 1.2.1-20240123-122827

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scm-manager/scm-code-editor-plugin",
3
3
  "private": false,
4
- "version": "1.2.1-20230911-115115",
4
+ "version": "1.2.1-20240123-122827",
5
5
  "license": "MIT",
6
6
  "main": "./src/main/js/index.tsx",
7
7
  "scripts": {
@@ -39,6 +39,7 @@ type Props = WithTranslation & {
39
39
  className?: string;
40
40
  initialFocus?: boolean;
41
41
  onChange: (value: string) => void;
42
+ onBlur?: () => void
42
43
  };
43
44
 
44
45
  type State = {
@@ -124,6 +125,7 @@ class CodeEditor extends Component<Props, State> {
124
125
  name="UNIQUE_ID_OF_DIV"
125
126
  value={content}
126
127
  readOnly={disabled}
128
+ onBlur={this.props.onBlur}
127
129
  width="100%"
128
130
  fontSize="14px"
129
131
  onFocus={(event, editor: Ace.Editor) => this.reloadEditor(editor)}
@@ -135,7 +137,7 @@ class CodeEditor extends Component<Props, State> {
135
137
  commands={[
136
138
  {
137
139
  name: "Escape",
138
- bindKey: { mac: "Esc", win: "Esc" },
140
+ bindKey: { mac: "Command-Enter", win: "Ctrl-Enter" },
139
141
  exec: editor => {
140
142
  editor.blur();
141
143
  }