mirror of
https://github.com/zadam/trilium.git
synced 2024-12-27 09:43:18 +08:00
insert current date + time on alt+t
This commit is contained in:
parent
361e69d236
commit
b57463d049
1 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
});
|
Loading…
Reference in a new issue