diff --git a/chrome/content/zotero/standalone/basicViewer.js b/chrome/content/zotero/standalone/basicViewer.js index 76fb271d2..f1ab4f1df 100644 --- a/chrome/content/zotero/standalone/basicViewer.js +++ b/chrome/content/zotero/standalone/basicViewer.js @@ -45,4 +45,13 @@ window.addEventListener("load", function() { window.setTimeout(function() { document.getElementById("my-browser").style.overflow = "auto"; }, 0); -}, false); \ No newline at end of file +}, false); + +window.addEventListener("keypress", function (event) { + // Cmd-R/Ctrl-R (with or without Shift) to reload + if (((Zotero.isMac && event.metaKey && !event.ctrlKey) + || (!Zotero.isMac && event.ctrlKey)) + && !event.altKey && event.which == 114) { + browser.reloadWithFlags(browser.webNavigation.LOAD_FLAGS_BYPASS_CACHE); + } +});