mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
fix delete with keyboard and context menu regarding the selection
This commit is contained in:
@@ -453,12 +453,6 @@ function initFancyTree(tree) {
|
||||
$tree.on('contextmenu', '.fancytree-node', function(e) {
|
||||
const node = $.ui.fancytree.getNode(e);
|
||||
|
||||
// right click resets selection to just this node
|
||||
// this is important when e.g. you right click on a note while having different note active
|
||||
// and then click on delete - obviously you want to delete only that one right-clicked
|
||||
node.setSelected(true);
|
||||
clearSelectedNodes();
|
||||
|
||||
contextMenuWidget.initContextMenu(e, new TreeContextMenu(node));
|
||||
|
||||
return false; // blocks default browser right click menu
|
||||
|
||||
Reference in New Issue
Block a user