Skip to content

Commit

Permalink
add cmd/ctrl+r reload shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeleldar committed Nov 5, 2022
1 parent 8c7f869 commit ca61812
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,8 @@ function handleTabShortcuts(e) {
removeTab();
e.preventDefault();
}
if (isModifier && e.key === "r") {
document.querySelector('.current').reload();
e.preventDefault();
}
};

0 comments on commit ca61812

Please sign in to comment.