Inline resetMouseMoved function directly into "mousemove" event handler
This commit is contained in:
parent
22fc4544ad
commit
8b6304ed62
1 changed files with 1 additions and 5 deletions
|
@ -493,11 +493,7 @@ function defocusSearchBar() {
|
|||
document.addEventListener("keypress", handleShortcut);
|
||||
document.addEventListener("keydown", handleShortcut);
|
||||
|
||||
function resetMouseMoved(ev) {
|
||||
mouseMovedAfterSearch = true;
|
||||
}
|
||||
|
||||
document.addEventListener("mousemove", resetMouseMoved);
|
||||
document.addEventListener("mousemove", function() { mouseMovedAfterSearch = true; });
|
||||
|
||||
var handleSourceHighlight = (function() {
|
||||
var prev_line_id = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue