<commit_before>define(['constants', 'storage','tabs'], function(C, storage, tabs){
  'use strict';

  function init() {

    $(window).keydown(function(e){
      switch(e.which){
        case C.KEYCODES.T:
          if(e.ctrlKey)
            tabs.open_new_tab();
          break;
        case C.KEYCODES.Q:
          if(e.ctrlKey)
            storage.clear();
          break;
        case C.KEYCODES.W:
          if(e.ctrlKey)
            console.log("close window key");
            e.preventDefault();
          break;
        case C.KEYCODES.L:
          if(e.ctrlKey)
            tabs.focus_address_bar();
          break;
        default:
          console.log(e);
      }
    });

  }
<commit_msg>Fix not being able to type "w"<commit_after>define(['constants', 'storage','tabs'], function(C, storage, tabs){
  'use strict';

  function init() {

    $(window).keydown(function(e){
      switch(e.which){
        case C.KEYCODES.T:
          if (e.ctrlKey) {
            tabs.open_new_tab();
          }
          break;
        case C.KEYCODES.Q:
          if (e.ctrlKey) {
            storage.clear();
          }
          break;
        case C.KEYCODES.W:
          if (e.ctrlKey) {
            console.log("close window key");
            e.preventDefault();
          }
          break;
        case C.KEYCODES.L:
          if(e.ctrlKey) {
            tabs.focus_address_bar();
          }
          break;
        default:
          console.log(e);
      }
    });

  }

{'fraction_non_alphanumeric': 0.13881401617250674, 'fraction_numerical': 0.0, 'mean_word_length': 1.4107142857142858, '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': '1154143', 'n_tokens_mistral': 471, 'n_tokens_neox': 470, 'n_words': 81}