mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
electron shortcuts fixes
This commit is contained in:
parent
a61f63b098
commit
34b13c7936
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user