From ae07b7c559b8228a6f2ef437c86fe175e4ac2e96 Mon Sep 17 00:00:00 2001 From: Pistos Date: Thu, 10 Nov 2011 11:38:39 -0500 Subject: [PATCH] Publisher: Hook up same "after keypress" handler to "after mouse click", because the text can change without any keypresses (paste, etc.). --- public/javascripts/publisher.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/javascripts/publisher.js b/public/javascripts/publisher.js index 92e17fd7a..499fd722e 100644 --- a/public/javascripts/publisher.js +++ b/public/javascripts/publisher.js @@ -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();