mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
F5 now reloads and ctrl-shift-i shows up dev tools
This commit is contained in:
@@ -24,6 +24,20 @@ $(document).bind('keydown', 'alt+t', () => {
|
||||
$('#note-detail').summernote('insertText', dateString);
|
||||
});
|
||||
|
||||
$(document).bind('keydown', 'f5', () => {
|
||||
location.reload();
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
$(document).bind('keydown', 'ctrl+shift+i', () => {
|
||||
if (isElectron()) {
|
||||
require('remote').getCurrentWindow().toggleDevTools();
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$(window).on('beforeunload', () => {
|
||||
// this makes sure that when user e.g. reloads the page or navigates away from the page, the note's content is saved
|
||||
// this sends the request asynchronously and doesn't wait for result
|
||||
|
||||
Reference in New Issue
Block a user