/** Fired when a key is typed. This is the equivalent of KeyListener.keyTyped(KeyEvent e). */
  protected void keyTyped(char par1, int par2) {
    if (selectedTabIndex != CreativeTabs.tabAllSearch.getTabIndex()) {
      if (Keyboard.isKeyDown(this.mc.gameSettings.keyBindChat.keyCode)) {
        this.func_74227_b(CreativeTabs.tabAllSearch);
      } else {
        super.keyTyped(par1, par2);
      }
    } else {
      if (this.field_74234_w) {
        this.field_74234_w = false;
        this.searchField.setText("");
      }

      if (!this.func_82319_a(par2)) {
        if (this.searchField.textboxKeyTyped(par1, par2)) {
          this.updateCreativeSearch();
        } else {
          super.keyTyped(par1, par2);
        }
      }
    }
  }