Skip to content

Commit

Permalink
Add support for F5 key
Browse files Browse the repository at this point in the history
  • Loading branch information
PalmerAL committed Apr 30, 2016
1 parent bf2bb72 commit e2fb2ed
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions js/keybindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,3 +243,12 @@ require.async("mousetrap", function (Mousetrap) {
});

}); //end require mousetrap

//reload the webview when the F5 key is pressed
document.body.addEventListener("keydown", function (e) {
if (e.keyCode == 116) {
try {
getWebview(tabs.getSelected()).reloadIgnoringCache();
} catch (e) {}
}
});

0 comments on commit e2fb2ed

Please sign in to comment.