diff --git a/xpfe/global/resources/content/bindings/menulist.xml b/xpfe/global/resources/content/bindings/menulist.xml index 0eb428fd7a99..856d192ba931 100644 --- a/xpfe/global/resources/content/bindings/menulist.xml +++ b/xpfe/global/resources/content/bindings/menulist.xml @@ -285,6 +285,13 @@ this.setInitialSelection(); ]]> + + + + + + + + this.inputField.select(); @@ -101,12 +108,10 @@ str = this.getAttribute('newlines'); if (str) { const nsIPlaintextEditor = Components.interfaces.nsIPlaintextEditor; - const nsIDOMNSEditableElement = Components.interfaces.nsIDOMNSEditableElement; for (var x in nsIPlaintextEditor) { if (/^eNewlines/.test(x)) { if (str == RegExp.rightContext.toLowerCase()) { - this.inputField.QueryInterface(nsIDOMNSEditableElement) - .editor.QueryInterface(nsIPlaintextEditor) + this.editor.QueryInterface(nsIPlaintextEditor) .newlineHandling = nsIPlaintextEditor[x]; break; }