in hive/scaladocs/lib/index.js [336:368]
function configureTextFilter() {
scheduler.add("init", function() {
$("#textfilter").append("<span class='pre'/><span class='input'><input id='index-input' type='text' accesskey='/'/></span><span class='post'/>");
var input = $("#textfilter input");
resizeFilterBlock();
input.bind('keyup', function(event) {
if (event.keyCode == 27) { // escape
input.attr("value", "");
}
if (event.keyCode == 40) { // down arrow
$(window).unbind("keydown");
keyboardScrolldownLeftPane();
return false;
}
textFilter();
});
input.bind('keydown', function(event) {
if (event.keyCode == 9) { // tab
$("#template").contents().find("#mbrsel-input").focus();
input.attr("value", "");
return false;
}
textFilter();
});
input.focus(function(event) { input.select(); });
});
scheduler.add("init", function() {
$("#textfilter > .post").click(function(){
$("#textfilter input").attr("value", "");
textFilter();
});
});
}