From 38404e80fc008452a96ed521d278590ad7d0f7b4 Mon Sep 17 00:00:00 2001 From: Kato Kazuyoshi Date: Tue, 8 Jan 2013 23:55:44 +0900 Subject: SI-6555 Scaladoc's class filter shouldn't drop the last character The event handler have to wait "keyup", not "keydown". --- src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js b/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js index ff73745972..1323a06c01 100644 --- a/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js +++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js @@ -339,7 +339,7 @@ function configureTextFilter() { printAlphabet(); var input = $("#textfilter input"); resizeFilterBlock(); - input.bind("keydown", function(event) { + input.bind('keyup', function(event) { if (event.keyCode == 27) { // escape input.attr("value", ""); } -- cgit v1.2.3