diff --git a/static/js/init.js b/static/js/init.js index 91e4bbbaf..0993985e3 100644 --- a/static/js/init.js +++ b/static/js/init.js @@ -160,4 +160,13 @@ $("#addLinkButton").click(function() { $(document).bind('keydown', 'alt+s', function() { $("input[name=search]").focus(); +}); + +$(document).bind('keydown', 'alt+t', function() { + const date = new Date(); + + const dateString = date.getDate() + ". " + (date.getMonth() + 1) + ". " + date.getFullYear() + " " + + date.getHours() + ":" + date.getMinutes(); + + $('#noteDetail').summernote('insertText', dateString); }); \ No newline at end of file