mirror of
https://github.com/zadam/trilium.git
synced 2025-10-19 06:38:59 +02:00
fix(tree): pasting in editor on middle click (closes #5812)
This commit is contained in:
parent
a946ce3534
commit
2cc181d1ac
@ -253,6 +253,11 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
this.$tree.on("auxclick", (e) => {
|
||||
// Prevent middle click from pasting in the editor.
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
this.$treeSettingsPopup = this.$widget.find(".tree-settings-popup");
|
||||
this.$hideArchivedNotesCheckbox = this.$treeSettingsPopup.find(".hide-archived-notes");
|
||||
|
Loading…
x
Reference in New Issue
Block a user