avaScript-how-detect-if-a-word-is-highlighted
export const isHighlighting = () => {
// detects mouse is highlighting a text
return window.getSelection && window.getSelection().type === 'Range';
};
Borma