code: public void pushChatGrabber (JTextComponent comp)
      {
          // note this component as the new chat grabber
          _curChatGrabber = comp;
  
          // add the component to the list of grabbers
          _chatGrabbers.addLast(comp);
          comp.addAncestorListener(this);
  
          // and request to give the new component the focus since that's a
          // sensible thing to do as it's aiming to nab all key events
          // henceforth
          comp.requestFocusInWindow();
      }
docs: Makes the specified component the new grabber of key typed events
  that look like they're chat-related per {@link #isChatCharacter}.