--- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/resources/search.js Mon Apr 01 16:49:34 2019 +0200
+++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/resources/search.js Mon Apr 01 16:51:09 2019 +0200
@@ -77,7 +77,7 @@
$(this).val(watermark).addClass('watermark');
}
});
- $("#search").on('click keydown', function() {
+ $("#search").on('click keydown paste', function() {
if ($(this).val() == watermark) {
$(this).val('').removeClass('watermark');
}
--- a/test/langtools/jdk/javadoc/doclet/testSearch/TestSearch.java Mon Apr 01 16:49:34 2019 +0200
+++ b/test/langtools/jdk/javadoc/doclet/testSearch/TestSearch.java Mon Apr 01 16:51:09 2019 +0200
@@ -625,7 +625,7 @@
"function concatResults(a1, a2) {",
"if (exactMatcher.test(item.l)) {\n"
+ " presult.push(item);",
- "$(\"#search\").on('click keydown', function() {\n"
+ "$(\"#search\").on('click keydown paste', function() {\n"
+ " if ($(this).val() == watermark) {\n"
+ " $(this).val('').removeClass('watermark');\n"
+ " }\n"