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("keypress", handleShortcut);
|
||||||
document.addEventListener("keydown", handleShortcut);
|
document.addEventListener("keydown", handleShortcut);
|
||||||
|
|
||||||
function resetMouseMoved(ev) {
|
document.addEventListener("mousemove", function() { mouseMovedAfterSearch = true; });
|
||||||
mouseMovedAfterSearch = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
document.addEventListener("mousemove", resetMouseMoved);
|
|
||||||
|
|
||||||
var handleSourceHighlight = (function() {
|
var handleSourceHighlight = (function() {
|
||||||
var prev_line_id = 0;
|
var prev_line_id = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue