Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

236
Visualizações
ACE Editor - enableLiveAutoCompletion - Disable Auto Select

I have enableLiveAutoCompletion set to True which works great, except that our users do not want the first word to be automatically selected. For example, if the last word in a line of code is "x" and the user hits enter the first auto complete suggestion for the word x is auto filled.

autocomplete

Is there any way to disable the automatic selection of the first word suggestion on enter and force the user to use arrow keys? Or perhaps is there a way I add a blank keyword to the keyword list that is always matched by the completer function?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

This looks like a bug in language_tools.js#L166 not resetting the value set from autocomplete.js#L496

the following hack seems to work around it

if (editor.completer) delete editor.completer.autoSelect
var Autocomplete = ace.require("ace/autocomplete").Autocomplete;
Autocomplete.prototype.__defineSetter__("autoSelect", function() { })
Autocomplete.prototype.__defineGetter__("autoSelect", function() { })
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda