Skip to content

Commit

Permalink
try deleting the right arrow hack
Browse files Browse the repository at this point in the history
  • Loading branch information
wagle committed Feb 29, 2012
1 parent 03ca874 commit 4e1c638
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions content/tagInput.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e1c638

Please sign in to comment.