preventTextSelectionIfShiftKey method

  1. @HostListener('mousedown')
void preventTextSelectionIfShiftKey(
  1. MouseEvent e
)

Implementation

@HostListener('mousedown')
void preventTextSelectionIfShiftKey(MouseEvent e) {
  if (e.shiftKey) e.preventDefault();
}