Skip to content

Commit

Permalink
Libdoc search: Scroll to shortcuts when search is opened #1872
Browse files Browse the repository at this point in the history
  • Loading branch information
pekkaklarck committed Jan 8, 2015
1 parent 9bd1e49 commit 1dffe84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/robot/htmldata/libdoc/libdoc.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ <h1>Opening library documentation failed</h1>
$('#search').show();
$('#open-search').hide();
$('#search-string').focus().select();
$(document).scrollTop($("#Shortcuts").offset().top);
}

function closeSearch() {
Expand Down

0 comments on commit 1dffe84

Please sign in to comment.