Skip to content
Snippets Groups Projects
Commit d9890bbf authored by Viktoria Wiebe's avatar Viktoria Wiebe Committed by David Siegfried
Browse files

re #1101 - add paste event to trigger search on right click paste

Merge request studip/studip!688
parent c4e03b99
No related branches found
No related tags found
No related merge requests found
......@@ -88,8 +88,9 @@ STUDIP.domReady(() => {
}
});
// Start searching 750 ms after user stopped typing.
$('#globalsearch-input').keyup(
// Start searching 750 ms after user stopped typing or content was added
// by pasting text via right-click.
$('#globalsearch-input').on('keyup paste',
_.debounce(function() {
STUDIP.GlobalSearch.doSearch();
}, 750)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment