Skip to content

Commit

Permalink
Collapse event listener for keydown events
Browse files Browse the repository at this point in the history
  • Loading branch information
versable committed Mar 4, 2020
1 parent 6b6e7a1 commit 6b77cef
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions flamegraph.pl
Original file line number Diff line number Diff line change
Expand Up @@ -814,16 +814,13 @@ sub flow {
}, false)
// ctrl-F for search
// ctrl-I to toggle case-sensitive search
window.addEventListener("keydown",function (e) {
if (e.keyCode === 114 || (e.ctrlKey && e.keyCode === 70)) {
e.preventDefault();
search_prompt();
}
}, false)
// ctrl-I to toggle case-sensitive search
window.addEventListener("keydown",function (e) {
if (e.ctrlKey && e.keyCode === 73) {
else if (e.ctrlKey && e.keyCode === 73) {
e.preventDefault();
toggle_ignorecase();
}
Expand Down

0 comments on commit 6b77cef

Please sign in to comment.