mirror of
https://github.com/zadam/trilium.git
synced 2024-11-11 01:23:57 +08:00
electron shortcuts fixes
This commit is contained in:
parent
a61f63b098
commit
34b13c7936
1 changed files with 8 additions and 2 deletions
|
@ -25,14 +25,20 @@ $(document).bind('keydown', 'alt+t', () => {
|
|||
});
|
||||
|
||||
$(document).bind('keydown', 'f5', () => {
|
||||
location.reload();
|
||||
window.location.reload(true);
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
$(document).bind('keydown', 'ctrl+r', () => {
|
||||
window.location.reload(true);
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
$(document).bind('keydown', 'ctrl+shift+i', () => {
|
||||
if (isElectron()) {
|
||||
require('remote').getCurrentWindow().toggleDevTools();
|
||||
require('electron').remote.getCurrentWindow().toggleDevTools();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue