Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
context menu now displayed associated keyboard shortcuts
azivner2749abded214
diff --git a/public/javascripts/context_menu.js b/public/javascripts/context_menu.jsindex 536ca9bc57..32f151aee8 100644--- a/public/javascripts/context_menu.js+++ b/public/javascripts/context_menu.js@@ -57,19 +57,19 @@ const contextMenu = (function() {delegate: "span.fancytree-title",autoFocus: true,menu: [- {title: "Insert note here", cmd: "insertNoteHere", uiIcon: "ui-icon-plus"},- {title: "Insert child note", cmd: "insertChildNote", uiIcon: "ui-icon-plus"},- {title: "Delete", cmd: "delete", uiIcon: "ui-icon-trash"},+ {title: "Insert note here <kbd>Ctrl+O</kbd>", cmd: "insertNoteHere", uiIcon: "ui-icon-plus"},+ {title: "Insert child note <kbd>Ctrl+P</kbd>", cmd: "insertChildNote", uiIcon: "ui-icon-plus"},+ {title: "Delete <kbd>Ctrl+Del</kbd>", cmd: "delete", uiIcon: "ui-icon-trash"},{title: "----"},- {title: "Edit tree prefix", cmd: "editTreePrefix", uiIcon: "ui-icon-pencil"},+ {title: "Edit tree prefix <kbd>F2</kbd>", cmd: "editTreePrefix", uiIcon: "ui-icon-pencil"},{title: "----"},{title: "Protect sub-tree", cmd: "protectSubTree", uiIcon: "ui-icon-locked"},{title: "Unprotect sub-tree", cmd: "unprotectSubTree", uiIcon: "ui-icon-unlocked"},{title: "----"},- {title: "Cut", cmd: "cut", uiIcon: "ui-icon-scissors"},- {title: "Copy / clone", cmd: "copy", uiIcon: "ui-icon-copy"},- {title: "Paste after", cmd: "pasteAfter", uiIcon: "ui-icon-clipboard"},- {title: "Paste into", cmd: "pasteInto", uiIcon: "ui-icon-clipboard"}+ {title: "Copy / clone <kbd>Ctrl+C</kbd>", cmd: "copy", uiIcon: "ui-icon-copy"},+ {title: "Cut <kbd>Ctrl+X</kbd>", cmd: "cut", uiIcon: "ui-icon-scissors"},+ {title: "Paste into <kbd>Ctrl+V</kbd>", cmd: "pasteInto", uiIcon: "ui-icon-clipboard"},+ {title: "Paste after", cmd: "pasteAfter", uiIcon: "ui-icon-clipboard"}],beforeOpen: (event, ui) => {const node = $.ui.fancytree.getNode(ui.target);diff --git a/public/stylesheets/style.css b/public/stylesheets/style.cssindex e23ce30df5..c17abdfe10 100644--- a/public/stylesheets/style.css+++ b/public/stylesheets/style.css@@ -167,6 +167,16 @@ div.ui-tooltip {display: block;}+/* Allow to use <kbd> elements inside the title to define shortcut hints. */+.ui-menu kbd {+ margin-left: 30px;+ float: right;+ color: black;+ border: none;+ background-color: transparent;+ box-shadow: none;+}+#loader-wrapper{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000;background-color:#fff;opacity:1;transition:opacity 2s ease}#loader{display:block;position:relative;left:50%;top:50%;width:150px;height:150px;margin:-75px 0 0 -75px;border-radius:50%;border:3px solid transparent;border-top-color:#777;-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite}#loader:before{content:"";position:absolute;top:5px;left:5px;right:5px;bottom:5px;border-radius:50%;border:3px solid transparent;border-top-color:#aaa;-webkit-animation:spin 3s linear infinite;animation:spin 3s linear infinite}diff --git a/services/build.js b/services/build.jsindex 3aa30d71e0..da774956e7 100644--- a/services/build.js+++ b/services/build.js@@ -1 +1 @@-module.exports = { build_date:"2017-12-21T22:21:42-05:00", build_revision: "e007ec5e2173b5086a998363401fae3933091675" };+module.exports = { build_date:"2017-12-23T14:02:07-05:00", build_revision: "51215cba1bd2da8a539e86dbd31004cf9adb3f93" };