[FIX-7514] press Enter key get "true" not new line (#7596)

This commit is contained in:
Devosend 2022-01-28 18:25:25 +08:00 committed by GitHub
parent 832f7352c9
commit 3c10bbe157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 52 additions and 13 deletions

View File

@ -67,7 +67,10 @@
this.keypress = () => {
if (!editor.getOption('readOnly')) {
editor.showHint({
completeSingle: false
completeSingle: false,
extraKeys: {
Enter: ''
}
})
}
}

View File

@ -67,7 +67,10 @@
this.keypress = () => {
if (!editor.getOption('readOnly')) {
editor.showHint({
completeSingle: false
completeSingle: false,
extraKeys: {
Enter: ''
}
})
}
}

View File

@ -367,7 +367,10 @@
this.keypress = () => {
if (!editor.getOption('readOnly')) {
editor.showHint({
completeSingle: false
completeSingle: false,
extraKeys: {
Enter: ''
}
})
}
}
@ -395,7 +398,10 @@
this.keypress = () => {
if (!jsonEditor.getOption('readOnly')) {
jsonEditor.showHint({
completeSingle: false
completeSingle: false,
extraKeys: {
Enter: ''
}
})
}
}

View File

@ -188,7 +188,10 @@
this.keypress = () => {
if (!editor.getOption('readOnly')) {
editor.showHint({
completeSingle: false
completeSingle: false,
extraKeys: {
Enter: ''
}
})
}
}

View File

@ -199,7 +199,10 @@
this.keypress = () => {
if (!editor.getOption('readOnly')) {
editor.showHint({
completeSingle: false
completeSingle: false,
extraKeys: {
Enter: ''
}
})
}
}

View File

@ -317,7 +317,10 @@
this.keypress = () => {
if (!editor.getOption('readOnly')) {
editor.showHint({
completeSingle: false
completeSingle: false,
extraKeys: {
Enter: ''
}
})
}
}

View File

@ -1094,7 +1094,10 @@
this.keypress = () => {
if (!editor.getOption('readOnly')) {
editor.showHint({
completeSingle: false
completeSingle: false,
extraKeys: {
Enter: ''
}
})
}
}
@ -1128,7 +1131,10 @@
this.keypress = () => {
if (!shellEditor.getOption('readOnly')) {
shellEditor.showHint({
completeSingle: false
completeSingle: false,
extraKeys: {
Enter: ''
}
})
}
}

View File

@ -101,7 +101,10 @@
this.keypress = () => {
if (!editor.getOption('readOnly')) {
editor.showHint({
completeSingle: false
completeSingle: false,
extraKeys: {
Enter: ''
}
})
}
}

View File

@ -155,7 +155,10 @@
this.keypress = () => {
if (!editor.getOption('readOnly')) {
editor.showHint({
completeSingle: false
completeSingle: false,
extraKeys: {
Enter: ''
}
})
}
}

View File

@ -143,7 +143,10 @@
this.keypress = () => {
if (!editor.getOption('readOnly')) {
editor.showHint({
completeSingle: false
completeSingle: false,
extraKeys: {
Enter: ''
}
})
}
}

View File

@ -156,7 +156,10 @@
this.keypress = () => {
if (!editor.getOption('readOnly')) {
editor.showHint({
completeSingle: false
completeSingle: false,
extraKeys: {
Enter: ''
}
})
}
}