Publisher: Hook up same "after keypress" handler to "after mouse click", because the text can change without any keypresses (paste, etc.).

This commit is contained in:
Pistos 2011-11-10 11:38:39 -05:00
parent d87c0a9b44
commit ae07b7c559

View file

@ -508,6 +508,7 @@ var Publisher = {
Publisher.input().autoResize();
Publisher.input().keydown(Publisher.autocompletion.keyDownHandler);
Publisher.input().keyup(Publisher.autocompletion.keyUpHandler);
Publisher.input().mouseup(Publisher.autocompletion.keyUpHandler);
Publisher.bindAjax();
Publisher.form().find("textarea").bind("focus", function(evt) {
Publisher.open();