fix(tree): pasting in editor on middle click (closes #5812)

This commit is contained in:
Elian Doran 2025-07-08 15:51:19 +03:00
parent a946ce3534
commit 2cc181d1ac
No known key found for this signature in database

View File

@ -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");