fix BUG-125: right-click changes highlight if its not in the highlight set

This commit is contained in:
2025-10-28 22:31:15 +11:00
parent 76b0745cc3
commit 89e8c5d9f7
2 changed files with 6 additions and 4 deletions

View File

@@ -916,6 +916,12 @@ $.contextMenu({
selector: '.entry',
itemClickEvent: "click",
build: function($triggerElement, e) {
// if we are not in the highlight set, then move the highlight to this element
if( ! $(e.currentTarget).is('.highlight') )
{
$('.highlight').removeClass('highlight');
$(e.currentTarget).addClass('highlight')
}
// when right-clicking & no selection add one OR deal with ctrl/shift right-lick as it always changes seln
if( NoSel() || e.ctrlKey || e.shiftKey )
{