TagSpaces is an offline, open source, document manager with tagging support
adding handling of the keybinding pro tag
Ilian5e021aa791a9
diff --git a/data/js/tags.ui.js b/data/js/tags.ui.jsindex 29a1f4dd2..9381acc59 100644--- a/data/js/tags.ui.js+++ b/data/js/tags.ui.js@@ -106,7 +106,8 @@TSCORE.selectedTagData,$( "#tagInTreeName" ).val(),$( "#tagColor" ).val(),- $( "#tagTextColor" ).val()+ $( "#tagTextColor" ).val(),+ $( "#tagInTreeKeyBinding" ).val());generateTagGroups();TSCORE.PerspectiveManager.refreshFileListContainer();@@ -275,8 +276,9 @@tagIcon = "<span class='fa fa-flask'/> ";}// Add keybinding to tags- if(tag.keyBinding !== undefined) {- tagIcon = "<span class='fa fa-key'/> ";+ if(tag.keyBinding !== undefined && tag.keyBinding.length > 0) {+ tagIcon = "<span class='fa fa-keyboard-o'/> ";+ tagTitle = tagTitle + " [" +tag.keyBinding+ "]";Mousetrap.bind(tag.keyBinding,(function(innerTag) {@@ -459,6 +461,8 @@function showTagEditInTreeDialog() {$( "#tagInTreeName" ).val(TSCORE.selectedTagData.title);+ $( "#tagInTreeKeyBinding" ).val(TSCORE.selectedTagData.keyBinding);+var $tagColor= $( "#tagColor" );$tagColor.simplecolorpicker({picker: false, theme: 'fontawesome'});