From 683322a8ad8e6a24c173516355a747889bf064bb Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Fri, 23 Dec 2005 22:50:25 +0000 Subject: [PATCH] Bug 312867 Implement textbox.reset(), expose input's editor patch by ajvincent@gmail.com r=neil sr=neil --- xpfe/global/resources/content/bindings/menulist.xml | 7 +++++++ xpfe/global/resources/content/bindings/textbox.xml | 11 ++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) 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; }