<commit_before>angular.module('loomioApp').directive 'lmoHref', ($window, $router, LmoUrlService) ->
  restrict: 'A'
  scope:
    path: '@lmoHref'
    model: '=lmoHrefModel'
  link: (scope, elem, attrs) ->
    route = LmoUrlService.route(path: scope.path, model: scope.model, params: scope.params)
    elem.attr 'href', ''
    elem.bind 'click', ($event) ->
      if $event.metaKey
        $window.open route, '_blank'
      else
        $router.navigate route<commit_msg>Add support for ctrl key<commit_after>angular.module('loomioApp').directive 'lmoHref', ($window, $router, LmoUrlService) ->
  restrict: 'A'
  scope:
    path: '@lmoHref'
    model: '=lmoHrefModel'
  link: (scope, elem, attrs) ->
    route = LmoUrlService.route(path: scope.path, model: scope.model, params: scope.params)
    elem.attr 'href', ''
    elem.bind 'click', ($event) ->
      if $event.metaKey or $event.ctrlKey
        $window.open route, '_blank'
      else
        $router.navigate route
{'fraction_non_alphanumeric': 0.15621788283658788, 'fraction_numerical': 0.0, 'mean_word_length': 3.3482142857142856, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2551290', 'n_tokens_mistral': 335, 'n_tokens_neox': 338, 'n_words': 77}