From 4e1c638f8be172d0b117b9838077e47a2e3268bd Mon Sep 17 00:00:00 2001 From: Perry Wagle Date: Wed, 29 Feb 2012 00:31:59 -0800 Subject: [PATCH] try deleting the right arrow hack --- content/tagInput.xml | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/content/tagInput.xml b/content/tagInput.xml index 51e0f83..7e3d73a 100644 --- a/content/tagInput.xml +++ b/content/tagInput.xml @@ -330,21 +330,6 @@ if (!val && !textbox.value) return; textbox.value= val; - - // optimization - if (!val) return; - - // Hack: The textbox won't automatically scroll to the caret if the - // caret's past the visible area. Moving around in the textbox will - // though, so generate a fake keypress. - // FOR THIS TO WORK, TAG INPUT MUST HAVE FOCUS BEFOREHAND. - e= document.createEvent("KeyEvents"); - //e.initKeyEvent("keypress", true, false, null, - e.initKeyEvent("keypress", false, false, null, - false, false, false, false, - Components.interfaces.nsIDOMKeyEvent.DOM_VK_RIGHT, 0); - e.bogus= true; - textbox.inputField.dispatchEvent(e); } // Checks the autocomplete menuitem as appropriate, if there's an