Answers for "avascript-how-to-detect-if-a-word-is-highlighted"

0

avascript-how-to-detect-if-a-word-is-highlighted

export const isHighlighting = () => {
  // detects mouse is highlighting a text
  return window.getSelection && window.getSelection().type === 'Range';
};
Posted by: Guest on September-22-2021

Code answers related to "avascript-how-to-detect-if-a-word-is-highlighted"

Code answers related to "Javascript"

Browse Popular Code Answers by Language