<commit_before>/*global chrome: false*/
ListIt.lvent.once('setup:views', function(L, barr) {
  'use strict';
  // Make Pages
  L.addPage('main', new L.views.MainPage());
});

ListIt.lvent.once('setup:views:after', function(L, barr) {
  'use strict';
  L.router.route('options', 'options', function() {
    // Intercept options page request and open a new window.
    this.navigate('', {trigger: false});
    window.open('/options.html', '_new');
  });

  L.router.route('help', 'help', function() {
    this.navigate('', {trigger: false});
    window.open('/help.html', '_new');
  });

  // Close on hotkey press.
  chrome.commands.getAll(function(cmds) {
    var cmd = _.findWhere(cmds, {name: "_execute_browser_action"});
    if (cmd && cmd.shortcut) {
      //$(document).bind('keydown', cmd.shortcut, _.bind(window.close, window));
      // $(window).bind('keydown', cmd.shortcut, function() {
        // console.log("you're pressing the command dawg");
        // document.close();
      // });
      // $(window).on('keydown', null, cmd.shortcut.toLocaleLowerCase(), function() {
        // console.log("you pressed the key, yay");
        // document.close();
        // });
      $(document).on('keydown', null, cmd.shortcut, function() {
        window.close();
      });
      $(document).on('keydown', null, "Ctrl+t", function() {
        window.close();
      });
      $(window).on('keydown', null, "ctrl+shift+l", function() {
        window.close();
      });
      $(document).bind('keydown', "ctrl+m", _.bind(window.close, window));
    }
  });
});<commit_msg>Removing keybinding on chrome hotkey<commit_after>/*global chrome: false*/
ListIt.lvent.once('setup:views', function(L, barr) {
  'use strict';
  // Make Pages
  L.addPage('main', new L.views.MainPage());
});

ListIt.lvent.once('setup:views:after', function(L, barr) {
  'use strict';
  L.router.route('options', 'options', function() {
    // Intercept options page request and open a new window.
    this.navigate('', {trigger: false});
    window.open('/options.html', '_new');
  });

  L.router.route('help', 'help', function() {
    this.navigate('', {trigger: false});
    window.open('/help.html', '_new');
  });
});
{'fraction_non_alphanumeric': 0.21454545454545454, 'fraction_numerical': 0.0, 'mean_word_length': 3.282101167315175, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7236398', 'n_tokens_mistral': 716, 'n_tokens_neox': 701, 'n_words': 145}