Skip to content

Commit

Permalink
autocomplete: disable Enter\Return key to apply completion (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirhr authored Oct 24, 2021
1 parent e3ea69e commit 5e9bfe4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1510,7 +1510,7 @@ export const setupLanguageTools = (ace) => {
"Ctrl-Down|Ctrl-End": function (editor) {editor.completer.goTo("end");},

"Esc": function (editor) {editor.completer.detach();},
"Return": function (editor) {return editor.completer.insertMatch();},
// "Return": function (editor) {return editor.completer.insertMatch();},
"Shift-Return": function (editor) {editor.completer.insertMatch(null, {deleteSuffix: true});},
"Tab": function (editor) {
var result = editor.completer.insertMatch();
Expand Down

0 comments on commit 5e9bfe4

Please sign in to comment.