electron shortcuts fixes

This commit is contained in:
azivner 2017-11-20 23:10:04 -05:00
parent a61f63b098
commit 34b13c7936

View File

@ -25,14 +25,20 @@ $(document).bind('keydown', 'alt+t', () => {
}); });
$(document).bind('keydown', 'f5', () => { $(document).bind('keydown', 'f5', () => {
location.reload(); window.location.reload(true);
return false;
});
$(document).bind('keydown', 'ctrl+r', () => {
window.location.reload(true);
return false; return false;
}); });
$(document).bind('keydown', 'ctrl+shift+i', () => { $(document).bind('keydown', 'ctrl+shift+i', () => {
if (isElectron()) { if (isElectron()) {
require('remote').getCurrentWindow().toggleDevTools(); require('electron').remote.getCurrentWindow().toggleDevTools();
return false; return false;
} }