Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
userscripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
blur on ESC, don't propogate bound key events
[userscripts.git]
/
numbered_links.user.js
diff --git
a/numbered_links.user.js
b/numbered_links.user.js
index
3598b68
..
e442ca8
100644
(file)
--- a/
numbered_links.user.js
+++ b/
numbered_links.user.js
@@
-367,11
+367,17
@@
function init() {
switch (c) {
case 'c':
window.scrollBy(0, -200);
switch (c) {
case 'c':
window.scrollBy(0, -200);
+ stop_event(e);
break;
case 't':
window.scrollBy(0, 200);
break;
case 't':
window.scrollBy(0, 200);
+ stop_event(e);
break;
}
break;
}
+ } else if (e.keyCode == 27) {
+ // unfocus on ESC
+ document.activeElement.blur();
+ stop_event(e);
}
}
}
}
}
}