Skip to content

Commit

Permalink
Merge pull request #193 from ator-dev/term-jumping-shift-click-fix
Browse files Browse the repository at this point in the history
Fix new term controls not recognising Shift+click
  • Loading branch information
ator-dev authored Oct 13, 2024
2 parents 153a84d + c731cd1 commit 6c68ce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1199,8 +1199,8 @@ const insertTermControl = (terms: MatchTerms, idx: number, command: string, comm
controlContent.classList.add(getSel(ElementClass.CONTROL_CONTENT));
controlContent.tabIndex = -1;
controlContent.textContent = term.phrase;
controlContent.onclick = () => { // Hack: event handler property used so that the listener is not duplicated.
focusOnTermJump(controlsInfo, highlightTags, false, term);
controlContent.onclick = event => { // Hack: event handler property used so that the listener is not duplicated.
focusOnTermJump(controlsInfo, highlightTags, event.shiftKey, term);
};
controlContent.addEventListener("mouseover", () => { // FIXME this is not screenreader friendly.
updateTermTooltip(term, controlsInfo);
Expand Down

0 comments on commit 6c68ce5

Please sign in to comment.