Index: gc_lang/fr/webext/panel/lex_editor.js ================================================================== --- gc_lang/fr/webext/panel/lex_editor.js +++ gc_lang/fr/webext/panel/lex_editor.js @@ -61,10 +61,11 @@ } else { this.hideElement("lexicon_page"); this.showElement("add_word_page"); document.getElementById("lexicon_button").style.backgroundColor = "hsl(210, 10%, 95%)"; document.getElementById("add_word_button").style.backgroundColor = "hsl(210, 80%, 90%)"; + document.getElementById("lemma").focus(); } }, showElement: function (sElemId) { if (document.getElementById(sElemId)) { @@ -468,10 +469,11 @@ addToLexicon: function () { try { oLexicon.addFlexions(this.lFlexion); document.getElementById("lemma").value = ""; + document.getElementById("lemma").focus(); oWidgets.showSection("section_vide"); oWidgets.hideElement("editor"); oWidgets.hideElement("actions"); oWidgets.clear(); oWidgets.showElement("save_button");