Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
wagle committed Mar 30, 2012
2 parents 5d6f0a8 + 4e1c638 commit 9f8ff7d
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 9f8ff7d

Please sign in to comment.